import React from 'react'; import cn from 'classnames'; import { TypographyText } from '@alfalab/core-components-typography'; import styles from './index.module.css'; export type ListHeaderProps = { /** * Заголовок */ title: string; /** * Дополнительное описание */ description?: string; /** * Наличие фоновой подложки */ filled?: boolean; /** * Дополнительный класс */ className?: string; /** * Идентификатор для систем автоматизированного тестирования */ dataTestId?: string; }; export const ListHeader: React.FC = ({ title, description, filled = true, className, dataTestId, }) => (
{title} {description && ( {`, ${description}`} )}
);