import React, { useState } from 'react' import { Box, Typography, Link } from '@mui/material' import SocialMedia from '../components/SocialMedia' import Feature from '../components/Feature' import LoginForm from '../components/LoginForm' import SignUpForm from '../components/SignUpForm' import ShippingForm from '../components/ShippingForm' import BillingForm from '../components/BillingForm' import ConfirmOrder from '../components/ConfirmOrder' import Grid from '@mui/material/Grid2'; const Checkout = () => { const [content, setContent] = useState(0); const [showLoginForm, setShowLoginForm] = useState(true); return ( {/* Header */} {[ 'LOGIN', 'SHIPPING', 'BILLING', 'CONFIRMATION' ][content]} {/* Navigation */} { setContent(0) }} sx={{ cursor: "pointer", color: (content == 0) ? "#93ABC7" : "black" }}>Login { setContent(1) }} sx={{ cursor: "pointer", color: (content == 1) ? "#93ABC7" : "black" }}>Shipping { setContent(2) }} sx={{ cursor: "pointer", color: (content == 2) ? "#93ABC7" : "black" }}>Billing { setContent(3) }} sx={{ cursor: "pointer", color: (content == 3) ? "#93ABC7" : "black" }}>Confirmation {/* Content */} {(content == 0) && EXISTING CUSTOMER NEW CUSTOMER EXISTING CUSTOMER Make purchases faster using previously saved details. Track previous orders and easily request returns from the website. Didnt have any Account? { setShowLoginForm(false) }} sx={{ textDecoration: "underline" }}> here to subcribe now. NEW CUSTOMER You’ll need an account to purchase watches, track and review orders, and manage your personal details. Already have an Account? { setShowLoginForm(true) }} sx={{ textDecoration: "underline" }}> here to subcribe now. } {(content == 1) && } {(content == 2) && } {(content == 3) && } ) } export default Checkout