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

23 lines
737 B
TypeScript
Raw Permalink Normal View History

// * 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 (
<>
2026-02-10 15:52:48 +01:00
<Alert variant="destructive" className="text-left mb-4">
<AlertCircle className="h-4 w-4" />
2026-02-10 15:52:48 +01:00
<AlertTitle>{useTrans("back.warning")}</AlertTitle>
<AlertDescription>
2026-02-10 15:52:48 +01:00
<p>{useTrans("back.warning_trash")}</p>
</AlertDescription>
</Alert>
2026-02-10 15:52:48 +01:00
<InputError all />
</>
);
}