import { FC } from "react"; import { Info, X } from "lucide-react"; // helpers import { TAuthErrorInfo } from "@/helpers/authentication.helper"; type TAuthBanner = { bannerData: TAuthErrorInfo | undefined; handleBannerData?: (bannerData: TAuthErrorInfo | undefined) => void; }; export const AuthBanner: FC = (props) => { const { bannerData, handleBannerData } = props; if (!bannerData) return <>; return (
{bannerData?.message}
handleBannerData && handleBannerData(undefined)} >
); };