ldc-ovoteam/resources/ts/back/Components/SoftdeleteWarning.tsx
Jérémy Munsch cd2d8ed397
refactor(i18n): replace GetTranslation with trans function
- Updated translation utility to improve consistency and reduce redundancy.
- Removed deprecated useTrans hook and related code.
- Introduced a new Zustand store for managing translations and locale settings.
- Cleaned up unused hooks and files related to localization.
2026-10-19 17:43:33 +02:00

20 lines
637 B
TypeScript

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