- 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.
20 lines
637 B
TypeScript
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 />
|
|
</>
|
|
);
|
|
}
|