import { Flex, Padding, Spacing, Text, TouchableOpacity } from '@/@dble_layout'; import { CardContainer } from '@/@widgets/card/CardContainer'; import Image from '@/@widgets/image/Image'; import Link from 'next/link'; import { useRouter } from 'next/router'; type Types = { index: number; href: string; title: string; description: string; tags: string[]; thumbnail: string; children?: never[]; }; export const ContentGridCard = ({ index, href, title, description, tags, thumbnail }: Types) => { const { push } = useRouter(); return ( push(href)} _mq={{ w768: { w: '100%' }, }} > {title {title} {description} {tags.slice(0, 3).map((el: any) => ( {'#' + el} ))} ); };