ldc-ovoteam/resources/ts/front/Components/Theme/Header/Header.tsx

48 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2026-03-18 17:14:23 +01:00
//* THEME
import DesktopNav from "$/uwil/Header/DesktopNav";
2026-03-18 17:14:23 +01:00
import MobileNav from "$/uwil/Header/MobileNav";
import trans from "@/hooks/use-translations";
2026-03-18 17:14:23 +01:00
import { FrontNavLinkProps } from "@/types/front";
import { route } from "ziggy-js";
2026-03-18 17:14:23 +01:00
2026-04-08 13:59:30 +02:00
export default function Header() {
2026-04-15 09:31:43 +02:00
const commitmentLinks = ["made-in-france", "gamme", "expertise"];
const navLinks: FrontNavLinkProps[] = [
{
title: trans(`front.ovoteam_commit`),
href: route(`front.engage`),
children: commitmentLinks.map((com) => {
return {
title: trans(`front.${com}`),
2026-04-08 13:59:30 +02:00
href: route(`front.${com}`),
};
}),
},
{
title: "Recettes",
href: route("front.recipes.index"),
},
{
title: "Produits",
href: route("front.products.index"),
},
{
title: "Nous contacter",
2026-04-08 13:59:30 +02:00
href: route("front.contact-us"),
},
{
title: "Nous rejoindre",
2026-04-15 09:31:43 +02:00
href: "https://recrutement.ldc.fr/fr/annonces?brands=2625",
external: true,
},
2026-04-08 13:59:30 +02:00
];
2026-03-18 17:14:23 +01:00
return (
2026-03-30 13:52:00 +02:00
<header className="bg-background w-full md:container md:mx-auto px-4 md:px-5 lg:pb-5">
2026-04-08 13:59:30 +02:00
<DesktopNav navLinks={navLinks} />
2026-03-18 17:14:23 +01:00
<MobileNav navLinks={navLinks} />
</header>
2026-04-08 13:59:30 +02:00
);
2026-03-18 17:14:23 +01:00
}