- sentry - variables in manifest - some dynamic pages - breadcrumbs - dynamic page resolver
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
//* THEME
|
|
import MobileNav from "$/uwil/Header/MobileNav";
|
|
import { FrontNavLinkProps } from "@/types/front";
|
|
import DesktopNav from "$/uwil/Header/DesktopNav";
|
|
import { route } from "ziggy-js";
|
|
import { GetTranslation } from "@/lib/utils";
|
|
|
|
|
|
|
|
const Header = () => {
|
|
|
|
const commitmentLinks = [
|
|
"gamme",
|
|
"made-in-france",
|
|
"expertise"
|
|
]
|
|
|
|
const navLinks: FrontNavLinkProps[] = [
|
|
{
|
|
title: GetTranslation(`front.engage`),
|
|
href: route(`front.engage`),
|
|
children: commitmentLinks.map((com) => {
|
|
return {
|
|
title: GetTranslation(`front.${com}`),
|
|
href: route(`front.${com}`)
|
|
}
|
|
})
|
|
},
|
|
{
|
|
title: "Recettes",
|
|
href: "",
|
|
},
|
|
{
|
|
title: "Produits",
|
|
href: "",
|
|
},
|
|
{
|
|
title: "Nous contacter",
|
|
href: route('front.contact-us')
|
|
},
|
|
{
|
|
title: "Nous rejoindre",
|
|
href: ""
|
|
},
|
|
|
|
]
|
|
|
|
return (
|
|
<header className="bg-background w-full md:container md:mx-auto px-4 md:px-5 lg:pb-5">
|
|
<DesktopNav navLinks={navLinks}/>
|
|
<MobileNav navLinks={navLinks} />
|
|
</header>
|
|
)
|
|
}
|
|
export default Header;
|