ldc-groupe/resources/ts/back/Components/SoftdeleteWarning.tsx
2026-02-11 09:15:45 +01:00

22 lines
737 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 />
</>
);
}