import { DataTable, Text } from '@moex-vibe/design-system' import { Box } from '@mui/material' import { createColumnHelper, getCoreRowModel, useReactTable } from '@tanstack/react-table' import type { DividendItem } from '@/shared/api' interface DividendsTableProps { dividends: DividendItem[] } const columnHelper = createColumnHelper() const columns = [ columnHelper.accessor('registryCloseDate', { header: 'Дата закрытия реестра', cell: (info) => info.getValue(), }), columnHelper.accessor('value', { header: 'Сумма', meta: { align: 'right' }, cell: (info) => `${info.getValue().toFixed(2)} ${info.row.original.currency}`, }), ] export function DividendsTable({ dividends }: DividendsTableProps) { const table = useReactTable({ data: dividends, columns, getCoreRowModel: getCoreRowModel(), }) return ( Нет дивидендов} /> ) }