From 7e1b84504c017626e29b9fbaae11f242d660e691 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 11 Jun 2026 00:59:22 +0000 Subject: [PATCH] Add src/components/BranchSelector.tsx --- src/components/BranchSelector.tsx | 99 +++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 src/components/BranchSelector.tsx diff --git a/src/components/BranchSelector.tsx b/src/components/BranchSelector.tsx new file mode 100644 index 0000000..34e7ba3 --- /dev/null +++ b/src/components/BranchSelector.tsx @@ -0,0 +1,99 @@ +"use client"; + +import React, { useState } from 'react'; +import { MapPin, Phone, Mail, Clock } from 'lucide-react'; + +interface Branch { + id: string; + name: string; + address: string; + phone: string; + email: string; + hours: string; +} + +const branches: Branch[] = [ + { + id: 'baghdad-main', + name: 'Baghdad Main Branch', + address: '123 Main St, Baghdad', + phone: '+964 770 123 4567', + email: 'baghdad.main@friedchicken.iq', + hours: 'Mon-Sun: 10:00 AM - 11:00 PM', + }, + { + id: 'erbil-city', + name: 'Erbil City Center', + address: '456 Erbil Rd, Erbil', + phone: '+964 750 987 6543', + email: 'erbil.city@friedchicken.iq', + hours: 'Mon-Sat: 11:00 AM - 10:00 PM', + }, + { + id: 'basra-port', + name: 'Basra Port Area', + address: '789 Port Ave, Basra', + phone: '+964 780 112 2334', + email: 'basra.port@friedchicken.iq', + hours: 'Mon-Sun: 09:00 AM - 10:00 PM', + }, +]; + +export default function BranchSelector() { + const [selectedBranchId, setSelectedBranchId] = useState(branches[0].id); + const selectedBranch = branches.find(branch => branch.id === selectedBranchId); + + return ( +
+

Select Your Branch

+
+ +
+ +
+
+ + + {selectedBranch && ( +
+

{selectedBranch.name}

+

+ {selectedBranch.address} +

+

+ {selectedBranch.phone} +

+

+ {selectedBranch.email} +

+

+ {selectedBranch.hours} +

+
+ )} +
+ ); +} \ No newline at end of file