import { useState } from "react"; import { motion } from "framer-motion"; export default function CustomerLogin() { const [username, setUsername] = useState(""); const [password, setPassword] = useState(""); const [loggedIn, setLoggedIn] = useState(false); const [customerData, setCustomerData] = useState(null); const handleLogin = () => { // Mock authentication and data retrieval setCustomerData({ name: "John Doe", accountNumber: "123456789", devices: [ { name: "Smart TV", location: "Living Room", usage: "3 hrs/day", wifiSpeed: "100 Mbps" }, { name: "Thermostat", location: "Bedroom", usage: "Auto", wifiSpeed: "N/A" }, ], smartHome: true, energySaver: true, services: ["Internet", "TV", "Smart Home Integration"], }); setLoggedIn(true); }; return (
{!loggedIn ? (

Customer Login

setUsername(e.target.value)} className="wp-block-input mb-2" /> setPassword(e.target.value)} className="wp-block-input mb-4" />
) : (

Welcome, {customerData.name}

Account Number: {customerData.accountNumber}

Devices

Features

Smart Home: {customerData.smartHome ? "Enabled" : "Disabled"}

Energy Saver: {customerData.energySaver ? "Enabled" : "Disabled"}

Services on Account

)}
); }
top of page
Electricity Repair Work

REQUEST A SERVICE

No Job Too Small or Too Big. Please take a moment to fill out the form.

To book a free on-site by filling out the form below, and we’ll call and arrange to book your job.

Thanks! We’ll send you a price quote shortly.

Choose your product(s)
Choose your product(s)
Choose your product(s)
.
Anchor 2
Anchor 3

CONTACT US 

Monday - Friday

8am - 5pm 

EMAIL US

AREAS COVERED

St Louis

Kansas City

San Antonio

New Jersey

Houston

Tyler Tx

Memphis, Tn

Dallas

Fort Worth

Corpus Christi

New York City

New Jersey

Los Angeles

bottom of page