/* eslint-disable */
// @ts-nocheck
import { Banner, Flex, FlexItem } from "../shared/@patternfly/react-core";
import { ExclamationTriangleIcon } from "../shared/@patternfly/react-icons";
import { useWhoAmI } from "./context/whoami/WhoAmI";
import { useTranslation } from "react-i18next";
import style from "./banners.module.css";
type WarnBannerProps = {
msg: string;
className?: string;
};
type EventsBannerType = "userEvents" | "adminEvents";
const WarnBanner = ({ msg, className }: WarnBannerProps) => {
const { t } = useTranslation();
return (
{t(msg)}
);
};
export const Banners = () => {
const { whoAmI } = useWhoAmI();
if (whoAmI.temporary) return ;
};
export const EventsBanners = ({ type }: { type: EventsBannerType }) => {
const msg =
type === "userEvents" ? "savingUserEventsOff" : "savingAdminEventsOff";
return ;
};