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

)}
); } Xstream | COMMUNICATION
top of page
Trendy Neon Background

Xstream

LEADING THE FUTURE

TV
Phone
Training
Anchor 1

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

Your content has been submitted

CONTACT US 

Monday - Friday

8am - 5pm 

EMAIL US

FOLLOW US ON

  • Instagram
  • Facebook
  • Twitter
  • LinkedIn
  • YouTube
  • TikTok

Your content has been submitted

Your content has been submitted

An error occurred. Try again later

© 2024 Xstream Communications

Anchor 2
Provider(s)

XSTREAM

Product(s)
Anchor 3
bottom of page