import { boolLabel, fmtDate } from "../../shared/utils.js"; import { RefreshIcon } from "../../shared/icons.jsx"; export function AvailableTablesSection({ tables, status, onRefresh, onToggleActive, DataTableComponent, StatusLineComponent, IconButtonComponent, }) { const tableState = tables?.availableTables || { rows: [] }; const DataTable = DataTableComponent; const StatusLine = StatusLineComponent; const IconButton = IconButtonComponent; return ( <>

Доступность таблиц

Скрытая служебная вкладка. Доступ только для администратора по прямой ссылке.

( {row.label || "-"} {row.table || "-"} {row.section || "-"} {boolLabel(Boolean(row.is_active))} {fmtDate(row.updated_at)} {row.responsible || "-"}
onToggleActive(row.table, !Boolean(row.is_active))} />
)} /> ); } export default AvailableTablesSection;