import { Box } from '@chakra-ui/react'; import { useColorValue } from '~/context'; import type { TTextOutput } from './types'; export const TextOutput = (props: TTextOutput) => { const { children, ...rest } = props; const bg = useColorValue('blackAlpha.100', 'gray.800'); const color = useColorValue('black', 'white'); const selectionBg = useColorValue('black', 'white'); const selectionColor = useColorValue('white', 'black'); return ( {children.split('\\n').join('\n').replace(/\n\n/g, '\n')} ); };