import { FC } from "react"; import { AlertCircle, CheckCircle } from "lucide-react"; type TBanner = { type: "success" | "error"; message: string; }; export const Banner: FC = (props) => { const { type, message } = props; return (
{type === "error" ? ( ) : (

{message}

); };