import { generatePath } from 'react-router-dom'; import { ContentLoader } from '@/shared/ui/contentLoader'; import TablePlaceholderSVG from '@/shared/assets/images/placeholders/table.svg?react'; import { absoluteRoutes } from '@/shared/config'; import { IdBlock } from '@/shared/ui/idBlock'; import { Table, TableRow } from '@/shared/ui/table'; import { LocalCode } from '@/features/local-indexer/types'; import { Code } from '../../api'; type Props = { code: Code | LocalCode | undefined; isCodeReady: boolean; }; const CodeTable = ({ code, isCodeReady }: Props) => code && isCodeReady ? ( {'blockHash' in code && ( )}
) : ( ); export { CodeTable };