import { Button } from "@/components/ui/button"; import Typography, { TypographyProps, } from "@/components/ui/Typography/Typography"; import { cn } from "@/lib/utils"; import Link from "next/link"; interface LegalProps extends Omit, "title"> { links?: (React.ComponentProps & { href: string })[]; copyright?: TypographyProps<"p">; title?: TypographyProps<"h3">; } export default function Legal({ links, copyright, title, ...props }: LegalProps) { return (
{title && ( )}
{links && links.map((link, index) => ( ))}
{copyright && ( )}
); }