"use client" import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table" import { Badge } from "@/components/ui/badge" import { Checkbox } from "@/components/ui/checkbox" import { Battery, Smartphone, Users } from "lucide-react" import type { Device } from "@/types/device" interface DeviceTableProps { devices: Device[] selectedDevices: string[] onSelectDevice: (deviceId: string, checked: boolean) => void onSelectAll: (checked: boolean) => void onDeviceClick: (deviceId: string) => void } export function DeviceTable({ devices, selectedDevices, onSelectDevice, onSelectAll, onDeviceClick, }: DeviceTableProps) { const allSelected = devices.length > 0 && selectedDevices.length === devices.length return (