import axios from 'axios' import { useState } from 'react' import Kakaopay from '../components/Kakaopay' const Payment = ({ location }) => { const [ticketInfo, setTicketInfo] = useState({ ...location.state }) async function SendMail(e) { try { const response = await axios.post('/api/email/send',{ email:e.target.name }) console.log(response.data) } catch (error) { console.log(error) } } return (