interface AlertProps { onClose: () => void; message: string; isWarning: boolean; } function Alert(props: AlertProps): JSX.Element { return (