import styles from './program-tab-layout.module.scss'; type Props = { heading: string; count: number | undefined; renderList: () => JSX.Element; renderSearch: () => JSX.Element; renderFilters?: () => JSX.Element; }; function ProgramTabLayout({ heading, count, renderList, renderSearch, renderFilters }: Props) { return (

{heading}: {count}

{renderList()}
{renderSearch()}
{renderFilters && renderFilters()}
); } export { ProgramTabLayout };