UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

21 lines (17 loc) 479 B
import type { ReactNode } from "react"; import type { RegisteredLinkProps } from "../link"; let wrap: | { brandTop: ReactNode; homeLinkProps: RegisteredLinkProps & { title: string }; } | undefined = undefined; export function setBrandTopAndHomeLinkProps(params: { brandTop: ReactNode; homeLinkProps: RegisteredLinkProps & { title: string }; }) { wrap = params; } export function getBrandTopAndHomeLinkProps() { return wrap; }