flowstate/utils/legal.ts
Chneemann 60e2b77324
All checks were successful
Deploy Flowstate to VPS / deploy (push) Successful in 1m3s
feat(layout): add mobile legal menu overlay and unify footer links
2026-08-16 19:09:46 +02:00

31 lines
974 B
TypeScript

/**
* @file utils/legal.ts
* @description Defines legal navigation configurations, icon mappings, and dynamic copyright text generators.
*/
import { FileText, ShieldCheck } from "lucide-react";
/**
* List of legal navigation links with their corresponding route paths and icon identifiers.
*/
export const LEGAL_LINKS = [
{ name: "Imprint", href: "/imprint", iconName: "FileText" },
{ name: "Privacy Policy", href: "/privacy", iconName: "ShieldCheck" },
] as const;
/**
* Mapping object linking string identifiers to their respective Lucide icon components.
*/
export const ICON_MAP = {
FileText: FileText,
ShieldCheck: ShieldCheck,
};
/**
* Generates the standardized copyright notice string with the given year.
*
* @param {number} year - The current target year for the copyright notice.
* @returns {string} The formatted copyright text string.
*/
export const COPYRIGHT_TEXT = (year: number) =>
`© ${year} André Kempf. All rights reserved.`;