/** @jsx jsx */ import { jsx } from '@emotion/core'; import { Box, css, useColorMode } from '@chakra-ui/core'; const bg = { dark: 'gray.800', light: 'blackAlpha.100' }; const color = { dark: 'white', light: 'black' }; const selectionBg = { dark: 'white', light: 'black' }; const selectionColor = { dark: 'black', light: 'white' }; export const TextOutput = ({ children, ...props }) => { const { colorMode } = useColorMode(); return ( {children .split('\\n') .join('\n') .replace(/\n\n/g, '\n')} ); };