import { ArrowTopRightIcon } from '@bnb-chain/icons'; import { Box, ComponentWithAs, Flex, FlexProps, forwardRef, Image, useColorMode, } from '@chakra-ui/react'; import { FormattedDate, FormattedMessage } from 'react-intl'; import { theme } from '../../../modules/theme'; import { CLASS_NAMES } from '../../constants'; import { Space } from '../../Space'; import { Typography } from '../../Typography'; type Nullable = T | null; type Props = Omit & { // Copy Ghost's props. data: { title?: string | undefined; slug: string; feature_image?: Nullable | undefined; published_at?: Nullable | undefined; reading_time?: number | undefined; }; }; export const BlogCard: ComponentWithAs<'div', Props> = forwardRef( ({ data, ...otherProps }, ref) => { const { colorMode } = useColorMode(); return ( {data.title} {data.title}  ยท  ); }, );