import React, { useState } from 'react'; import { Search, Plus, Download, Upload, Edit, MapPin, Phone, Mail, MoreHorizontal } from 'lucide-react'; import { Button } from "../ui/button"; import { Input } from "../ui/input"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "../ui/table"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "../ui/dialog"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "../ui/select"; import { Label } from "../ui/label"; import { Badge } from "../ui/badge"; import { Switch } from "../ui/switch"; // --- Mock Data --- const MOCK_LOCATIONS = [ { id: '12345', name: 'Downtown Store', address: '123 Main St, New York, NY', phone: '+1 (555) 123-4567', email: 'downtown@example.com', gps: '40.7128° N, 74.0060° W', status: 'active' }, { id: '12335', name: 'Uptown Market', address: '456 High St, New York, NY', phone: '+1 (555) 987-6543', email: 'uptown@example.com', gps: '40.7580° N, 73.9855° W', status: 'active' }, { id: '12445', name: 'Airport Kiosk', address: 'Terminal 4, JFK Airport', phone: '+1 (555) 555-5555', email: 'jfk@example.com', gps: '40.6413° N, 73.7781° W', status: 'active' }, { id: '12555', name: 'Suburban Outlet', address: '789 Country Rd, Long Island', phone: '+1 (555) 111-2222', email: 'suburb@example.com', gps: '40.8500° N, 73.2000° W', status: 'inactive' }, ]; export function LocationsView() { const [isCreateDialogOpen, setIsCreateDialogOpen] = useState(false); const [locations, setLocations] = useState(MOCK_LOCATIONS); return (