https://dev.kronoz.win/r/marzneshin.git
1import { Alert, AlertDescription, AlertTitle } from "@marzneshin/common/components"
2import { cn } from "@marzneshin/common/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}