import { APPEARANCE, IconPredefined, SIZE } from '@cloud-ru/ds-icon-predefined'; import { TruncateString } from '@cloud-ru/ds-truncate-string'; import { SIZE as TYPOGRAPHY_SIZE, Typography, VARIANT } from '@cloud-ru/ds-typography'; import cn from 'classnames'; import { ReactNode } from 'react'; import { Icon } from '../../types'; import styles from './styles.module.scss'; export type SidebarTitleProps = { title: string; icon: Icon; className?: string; afterContent?: ReactNode; }; export function SidebarTitle({ title, className, icon, afterContent }: SidebarTitleProps) { return (
{/* Иконка сайдбара 24px (Figma density/size/icon/s, node 3334:70387 → itemPinTop). У @cloud-ru/ds-icon-predefined нет ключа 's'; SIZE.M squared даёт ровно 24px-глиф — визуальный паритет с легаси size='s'. */}
{afterContent}
); }