- 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
488 B
TypeScript
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,
|
|
}}
|
|
/>
|
|
);
|
|
}
|