import * as React from 'react'; import { ContentCategory } from './ContentCategory'; import { ContentCategories } from './ContentCategories'; import { ContentService } from './ContentService'; import { ContentData } from './extractContentData'; export type ContentProps = { data: ContentData; }; const Container = ({ children }: { children: React.ReactNode }) =>
{children}
; export const Content = ({ data }: ContentProps): JSX.Element => { const { service, category, categories } = data; if (service) { return ( ); } if (category) { return ; } if (categories) { return ; } return No results found!; }; export default Content;