import React from 'react'; type PageMetaProps = { title?: string | null; tabs?: { name: string; href: string; }[]; tabClicked?: string; onTabClick?: (value: string) => void; searchBar?: React.ReactNode; tabType?: string; } export default function PageMeta( { title = null, tabs = [], tabClicked = '', onTabClick, searchBar = null, tabType = 'link' }: PageMetaProps ) { const handleTabClick = (tab: { name: string; href: string; value?: string; }, index: number) => { if (onTabClick) { const value = tab.name; onTabClick(value); } }; return (

{title}

{searchBar}
{tabs.length > 0 && ( ) }
); }