import { Flex, Text } from '../../../general'; import { BlockProps, Block } from '../Block/Block'; import { motion } from 'framer-motion'; type TextBlockProps = { text: string; by: string; reference: { image: string; // favicon link: string; }; metadata?: any; } & BlockProps; export const TextBlock = ({ text, by, reference, ...rest }: TextBlockProps) => ( {text} {reference.image && ( )} ) => { evt.stopPropagation(); window.open(reference.link, '_blank'); }} > {reference.link} {by} );