import React from 'react'; import { FlatGrid } from 'react-native-super-grid'; import { Heading, VStack } from 'native-base'; type CardGridCustomProps = { content: T[]; heading?: JSX.Element; maxItemsPerRow?: number; style?: Parameters[0]['additionalRowStyle']; cardComponent: React.ComponentType; }; const CardGridCustom = >(props: CardGridCustomProps) => { const { content, heading, maxItemsPerRow, style, cardComponent: CardComponent } = props; return ( {heading && {heading}} } spacing={10} /> ); }; export default CardGridCustom;