import { ReactNode } from 'react'; import Link from 'next/link'; import { cn } from '@/lib/utils'; interface SectionProps { title: string; subtitle?: string; moreText?: string; moreHref?: string; className?: string; children: ReactNode; } export function Section({ title, subtitle, moreText = '查看更多', moreHref, className, children, }: SectionProps) { return (

{title}

{subtitle && (

{subtitle}

)}
{moreHref && ( {moreText} → )}
{children}
); }