Implement login screen

This commit is contained in:
2025-08-30 10:32:14 +03:00
Unverified
parent 283ed18bc9
commit 6f9c9a6b73
4 changed files with 97 additions and 74 deletions
+16
View File
@@ -0,0 +1,16 @@
export type AlertType = "success" | "danger"
export interface Alert {
type: AlertType;
message: string;
}
export function AlertsContainer({ alerts }: { alerts: Alert[]}) {
return (
<div>
{alerts.map(alert => {
return <div className={`alert alert-${alert.type}`}>{alert.message}</div>
})}
</div>
)
}