'use client'
import { ArrowLeft, Search, Filter, BarChart3, Grid3X3, List, Download, RotateCcw, Layers } from 'lucide-react'
import { useRouter } from 'next/navigation'
import React from 'react'
import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { SuppliesHeaderProps } from './types'
export function SuppliesHeader({
viewMode,
onViewModeChange,
groupBy,
onGroupByChange,
filters,
onFiltersChange,
showFilters,
onToggleFilters,
onExport,
onRefresh,
}: SuppliesHeaderProps) {
const router = useRouter()
const handleFilterChange = (key: keyof typeof filters, value: any) => {
onFiltersChange({ ...filters, [key]: value })
}
return (
{/* Заголовок страницы */}
Расходники фулфилмента
Управление расходными материалами фулфилмент-центра
{/* Экспорт данных */}
{/* Обновить */}
{/* Панель управления */}
{/* Поиск */}
handleFilterChange('search', e.target.value)}
className="pl-10 w-64 bg-white/5 border-white/20 text-white placeholder:text-white/40 focus:border-blue-400"
/>
{/* Фильтры */}
{/* Переключатель режимов просмотра */}
{/* Группировка */}
{viewMode !== 'analytics' && (
)}
{/* Развернутые фильтры */}
{showFilters && (
)}
)
}