import Link from 'next/link' import React, { useRef } from 'react' import { ButtonCommon, Inputcommon } from 'src/components/common' import InputCommon from 'src/components/common/InputCommon/InputCommon' import { CheckOutForm } from 'src/utils/types.utils' import s from './CustomerInfoForm.module.scss' interface CustomerInfoFormProps { onConfirm?: (id: number, formInfo: CheckOutForm) => void id: number } const CustomerInfoForm = ({ id, onConfirm }: CustomerInfoFormProps) => { const nameRef = useRef>(null) const emailRef = useRef>(null) const handleConfirmClick = () => { onConfirm && onConfirm(id, { name: nameRef?.current?.getValue().toString(), email: emailRef.current?.getValue().toString(), }) } return (
By clicking continue you agree to Casper's{' '} { terms and conditions }{' '} and{' '} { privacy policy } .
Continue to Shipping
) } export default CustomerInfoForm