import { ElementIds } from '@/Constants/ElementIDs' import { useMemo } from 'react' type Props = { bytes: Uint8Array } const TextPreview = ({ bytes }: Props) => { const text = useMemo(() => { const textDecoder = new TextDecoder() return textDecoder.decode(bytes) }, [bytes]) return ( ) } export default TextPreview