balibabu
feat: delete the added model #503 and display an error message when the requested file fails to parse #684 (#708)
ebf2bde
import '@js-preview/excel/lib/index.css'; | |
import FileError from '../file-error'; | |
import { useFetchExcel } from '../hooks'; | |
const Excel = ({ filePath }: { filePath: string }) => { | |
const { status, containerRef } = useFetchExcel(filePath); | |
return ( | |
<div | |
id="excel" | |
ref={containerRef} | |
style={{ height: '100%', width: '100%' }} | |
> | |
{status || <FileError></FileError>} | |
</div> | |
); | |
}; | |
export default Excel; | |