import { LuPlus, LuSend, LuTrash2 } from "react-icons/lu"; import { Button } from "@/components/Button"; import Card from "@/components/Card"; import { FieldError } from "@/components/InputField"; export interface StoredDevice { name: string; macAddress: string; } interface DeviceListProps { storedDevices: StoredDevice[]; errorMessage: string | null; onSendMagicPacket: (macAddress: string) => void; onDeleteDevice: (index: number) => void; onCancelWakeOnLanModal: () => void; setShowAddForm: (show: boolean) => void; } export default function DeviceList({ storedDevices, errorMessage, onSendMagicPacket, onDeleteDevice, onCancelWakeOnLanModal, setShowAddForm, }: DeviceListProps) { return (
{device?.name}
{device.macAddress?.toLowerCase()}