import Link from "next/link"; import { ChevronRight } from "lucide-react"; import { Badge } from "@/components/ui/Badge"; import { memo } from "react"; interface SectionHeaderProps { title: string; showAllHref?: string; rightAction?: React.ReactNode; badge?: string; } const SectionHeader = memo(function SectionHeader({ title, showAllHref, rightAction, badge, }: SectionHeaderProps) { return (

{title}

{badge && {badge}}
{rightAction ? ( rightAction ) : showAllHref ? ( Show all ) : null}
); }); export { SectionHeader };