import Link from './Link'; import styles from '@styles/modules/LearnMore.module.css'; interface LearnMoreLink { label: string; href: string; } interface LearnMoreProps { links: LearnMoreLink[]; title?: string; } const LearnMore = ({ links, title }: LearnMoreProps) => { // Split link list into two columns const splitLinks = (links: LearnMoreLink[]): LearnMoreLink[][] => { return [ [...links.slice(0, Math.ceil(links.length / 2))], [...links.slice(Math.ceil(links.length / 2))], ]; }; return (
{title || 'Learn More'}