import ProInputCard from "components/ProInputCard/ProInputCard.tsx"; import ProPhoneInput from "components/ProPhoneInput"; import { selectCart, updateCustomerName } from "features/order/orderSlice"; import { OrderType } from "pages/checkout/hooks/types.ts"; import { useTranslation } from "react-i18next"; import { useAppDispatch, useAppSelector } from "redux/hooks"; import { Form, Input } from "antd"; import styles from "./CustomerInformationCard.module.css"; export default function CustomerInformationCard() { const { t } = useTranslation(); const { orderType } = useAppSelector(selectCart); const dispatch = useAppDispatch(); const customerName = useAppSelector((state) => state.order.customerName); return ( orderType !== OrderType.Gift && ( <>
{ dispatch(updateCustomerName(e.target.value)); }} />
) ); }