gitscope
← marzneshin / v0.3.0-alpha1 / dashboard/src/features/auth/login/form-error.tsx
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/features/auth/login/form-error.tsx · TypeScript
Blame Raw
 1import { Alert, AlertDescription, AlertTitle } from "@marzneshin/components"
 2import { cn } from "@marzneshin/utils";
 3
 4interface FormErrorProps {
 5    className: string;
 6    title: string;
 7    desc: string;
 8}
 9
10export const FormError = ({ className, title, desc }: FormErrorProps) => {
11    return (
12        <Alert variant='destructive' className={cn(className, "p-3 bg-destructive-accent")}>
13            <AlertTitle className="font-semibold font-header">{title}</AlertTitle>
14            <AlertDescription>{desc}</AlertDescription>
15        </Alert>
16    )
17}