import { client } from '@/client'; import { getOffchainAuthKeys } from '@/utils/offchainAuth'; import { ChangeEvent, useState } from 'react'; import { useAccount } from 'wagmi'; import { getCheckSumsWorker } from '@bnb-chain/greenfiled-file-handle'; import { ReedSolomon } from '@bnb-chain/reed-solomon'; export const CreateObject = () => { const { address, connector } = useAccount(); const [file, setFile] = useState(); const [txHash, setTxHash] = useState(); const [createObjectInfo, setCreateObjectInfo] = useState({ bucketName: '', objectName: '', }); return (
<>

Create Object

bucket name : { setCreateObjectInfo({ ...createObjectInfo, bucketName: e.target.value }); }} />
object name : { setCreateObjectInfo({ ...createObjectInfo, objectName: e.target.value }); }} />
) => { if (e.target.files) { setFile(e.target.files[0]); } }} />


); };