import React from "react"; import type { FormBannerErrors } from "../../types"; import { Banner } from "../../../Banner"; import { useAtlantisI18n } from "../../../hooks/useAtlantisI18n"; export function FormErrorBanner({ networkError, bannerError, }: FormBannerErrors) { const { t } = useAtlantisI18n(); if (networkError) { return {t("errors.couldNotSave")}; } else if (bannerError) { return ( ); } return <>; }