import { Stack, Text } from '@mantine/core'; import { useCommonHooks } from 'hooks'; import { textClasses } from 'styles'; import LinkGroups from './LinkGroups'; function Links({ contentType }: any) { const { isMobile, linksIsFetched, groupsIsFetched, groupData, bookmarkData } = useCommonHooks(); return ( <> {groupsIsFetched && linksIsFetched && groupData?.length > 0 && contentType.length > 0 && ( Bookmarks {groupData.map((category: any) => { if ( contentType.includes(category.filterName) || contentType.includes('All') ) { return ( bookmark.category === category.categoryName, )} /> ); } })} )} ); } export default Links;