import { cn } from "@/lib/utils"; import type { FaqItem } from "@/content/home"; export type { FaqItem }; export interface FaqProps { items: readonly FaqItem[]; className?: string; } /** DM Mono „+“ that turns into „ד by rotating 45° when the `
` is open. */ export const PLUS_GLYPH = "font-mono text-base leading-none text-accent transition-transform duration-300 ease-[var(--ease-out-quart)] group-open:rotate-45"; /** * Native `
/` ledger: question Bodoni 28 px, answer Jost 400, * hairline-separated, no accordion library. Fully usable without JS. */ export function Faq({ items, className }: FaqProps) { if (!items.length) return null; return (
{items.map((item) => (
{item.q}

{item.a}

))}
); } export default Faq;