type Props = { error?: string | null; notice?: string | null; }; export function Flash({ error = null, notice = null }: Props) { if (!error && !notice) return null; return (
{error ?

{error}

: null} {notice ?

{notice}

: null}
); }