import { extractSupportProps, WithSupportProps } from '@cloud-ru/ds-utils'; import cn from 'classnames'; import { PropsWithChildren } from 'react'; import { ActionsProps, MobileActions } from '../Actions'; import { Headline, HeadlineProps } from '../Headline'; import { SidebarSelect, SidebarSelectProps } from '../PageSidebar'; import styles from './mobileStyles.module.scss'; export type MobilePageServicesProps = WithSupportProps< PropsWithChildren< Pick & { className?: string; sidebar?: SidebarSelectProps; actions?: ActionsProps['items']; maxVisibleActionsItems?: ActionsProps['maxVisibleItems']; } > >; export function MobilePageServices({ children, title, actions = [], className, sidebar, slotAfterTitle, subtitle, slotBeforeTitle, maxVisibleActionsItems, ...rest }: MobilePageServicesProps) { return (
{/* Триггер-селект «Информация» — full-bleed строка с разделителем снизу (Figma 3334:63034). */} {sidebar && }
{actions.length > 0 && }
{children}
); }