import React, { useState } from 'react' import { Box, Button, IconButton, TextField, Typography } 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); 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 Make purchases faster using previously saved details. Track previous orders and easily request returns from the website. You’ll need an account to purchase watches, track and review orders, and manage your personal details. } {(content == 1) && } {(content == 2) && } {(content == 3) && } ) } export default Checkout