ldc-ovoteam/resources/ts/front/Components/Theme/BackToHome.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
488 B
TypeScript

import Button from "$/uwil/Button";
import { sidePlacements } from "@/front/lib/constants";
import str from "@/hooks/use-string";
import trans from "@/hooks/use-translations";
export default function BackToHome() {
return (
<Button
variant="tertiary"
link={{
href: "/",
label: str(trans("front.back_to_your_website")).ucFirst().value(),
}}
icon={{
icon: "chevron-left",
placement: sidePlacements.LEFT,
}}
/>
);
}