flowstate/lib/utils/legal.ts
Chneemann a60851ac07
All checks were successful
Deploy Flowstate to VPS / deploy (push) Successful in 1m27s
refactor(lib): consolidate services, types, utils, and actions into lib folder and update import paths
2026-08-23 16:44:18 +02:00

31 lines
982 B
TypeScript

/**
* @file app/lib/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.`;