import { faCircleExclamation } from "@fortawesome/free-solid-svg-icons"; import { useTranslation } from "next-i18next"; import { FestaIcon } from "./FestaIcon"; type ErrorInlineProps = { error: JSON, text?: string } export function ErrorInline(props: ErrorInlineProps) { const {t} = useTranslation() return (   {props.text ?? t("genericError")}   {JSON.stringify(props.error)} ) }