import { generatePath } from 'react-router-dom'; import { routes, absoluteRoutes } from '@/shared/config'; import { BulbBlock } from '@/shared/ui/bulbBlock'; import { IdBlock } from '@/shared/ui/idBlock'; import { Table, TableRow } from '@/shared/ui/table'; import { TimestampBlock } from '@/shared/ui/timestampBlock'; import { ContentLoader } from '@/shared/ui/contentLoader'; import TablePlaceholderSVG from '@/shared/assets/images/placeholders/table.svg?react'; import { LocalProgram } from '@/features/local-indexer'; import { Program } from '../../api'; import { PROGRAM_STATUS_NAME } from '../../consts'; import { getBulbStatus } from '../../utils'; import styles from './program-table.module.scss'; type Props = { program: Program | LocalProgram | undefined; isProgramReady: boolean; renderBalance: () => JSX.Element; }; const ProgramTable = ({ program, isProgramReady, renderBalance }: Props) => { const { codeId } = program || {}; const blockId = program && 'blockHash' in program ? program.blockHash : undefined; if (!isProgramReady || !program) return (