import { ChevronDownIcon, ChevronUpIcon, QuestionMarkCircleIcon } from "@heroicons/react/24/outline"; import { useTranslations } from "next-intl"; import { FC, ReactNode } from "react"; export const InfoBox: FC<{ children: ReactNode; title?: string; }> = ({ children, title }) => { const t = useTranslations("info-box"); return (
{title ?? t("default-title")}
{children}
) }