import React from 'react' import { useState } from 'react' import { useHistory } from 'react-router-dom' import { createClient } from '../api' export const Dashboard = () => { const history = useHistory() const [name, setName] = useState('') const [email, setEmail] = useState('') const [phone, setPhone] = useState('') const handleReset = () => { // } const handleSubmit = async () => { // phone number is stripped for numbers await createClient({ name, email, phone }) history.push(`/sessions/${phone}`) } return (

Dashboard

TODO: List of past sessions for review?
) }