'use client'; import React from 'react'; import { Stack } from '@/ui/Stack'; import { Box } from '@/ui/Box'; import { Text } from '@/ui/Text'; import { Button } from '@/ui/Button'; import { motion, AnimatePresence } from 'framer-motion'; interface BulkActionBarProps { selectedCount: number; actions: { label: string; onClick: () => void; variant?: 'primary' | 'secondary' | 'danger'; icon?: React.ReactNode; }[]; onClearSelection: () => void; } /** * BulkActionBar * * Floating action bar that appears when items are selected in a table. */ export function BulkActionBar({ selectedCount, actions, onClearSelection }: BulkActionBarProps) { return ( {selectedCount > 0 && ( {selectedCount} Items Selected {actions.map((action) => ( ))} )} ); }