import { Box, Flex, Select, Textarea } from '@chakra-ui/react'; import React from 'react'; import hexToUtf8 from 'lib/hexToUtf8'; import CopyToClipboard from 'ui/shared/CopyToClipboard'; type DataType = 'Hex' | 'UTF-8' const OPTIONS: Array = [ 'Hex', 'UTF-8' ]; interface Props { hex: string; } const RawInputData = ({ hex }: Props) => { const [ selectedDataType, setSelectedDataType ] = React.useState('Hex'); const handleSelectChange = React.useCallback((event: React.ChangeEvent) => { setSelectedDataType(event.target.value as DataType); }, []); return (