ldc-groupe/resources/ts/back/Components/SoftdeleteWarning.tsx

25 lines
789 B
TypeScript

// * Packages
import { AlertCircle } from "lucide-react";
// * Components shadcn
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
// * Other
import InputError from "@/back/Components/InputError";
import useTrans from "@/hooks/use-translations";
export default function SoftdeleteWarning() {
return (
<>
<Alert
variant="destructive"
className="text-left mb-4"
>
<AlertCircle className="h-4 w-4" />
<AlertTitle>{useTrans('back.warning')}</AlertTitle>
<AlertDescription>
<p>{useTrans('back.warning_trash')}</p>
</AlertDescription>
</Alert>
<InputError all={true} />
</>
);
}