import { isMobileLayout, useAdaptiveLayout } from '@cloud-ru/ds-adaptive'; import { TEST_IDS } from '../../testIds'; import { BulkActionsCheckbox, BulkActionsControls, MobileBulkActionsSheet, SelectionLabel } from './components'; import styles from './styles.module.scss'; import { BulkActionsComponentProps } from './types'; export function BulkActions({ actions = [], checked, onCheck, indeterminate, selectedCount = 0, totalCount, showBulkCheckbox = true, resizingContainerRef, }: BulkActionsComponentProps) { const { layoutType } = useAdaptiveLayout(); const isMobile = isMobileLayout(layoutType); const hasSelection = Boolean(checked || indeterminate); const showActions = hasSelection && actions.length > 0; const showInlineActions = showActions && !isMobile; const showCheckboxInToolbar = showBulkCheckbox; return ( <>