/** * Секция со списком «ключ — значение». Переиспользуется для всех ролей. */ 'use client'; import React from 'react'; import { Panel } from './Panel'; import { SectionHeader } from './SectionHeader'; import { ListRow } from './ListRow'; export interface StatsListRow { label: string; value: React.ReactNode; highlight?: boolean | 'primary' | 'tertiary' | 'error'; icon?: React.ReactNode; } export interface StatsListSectionProps { title: string; rows: StatsListRow[]; loading?: boolean; } export const StatsListSection: React.FC = ({ title, rows, loading = false, }) => { return ( {loading ? (
{[1, 2, 3, 4].map((i) => (
))}
) : (
{rows.map((row, i) => ( ))}
)} ); };