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 styles from './mobileStyles.module.scss'; export type MobilePageCatalogProps = WithSupportProps< PropsWithChildren< Pick & { className?: string; actions?: ActionsProps['items']; maxVisibleActionsItems?: ActionsProps['maxVisibleItems']; } > >; export function MobilePageCatalog({ children, title, actions = [], maxVisibleActionsItems, className, ...rest }: MobilePageCatalogProps) { return (
{actions.length > 0 && }
{children}
); }