UNPKG

@betterstore/react

Version:

E-commerce for Developers

21 lines (20 loc) 865 B
import { ShippingRate } from "@betterstore/sdk"; import React from "react"; import { type ShippingMethodFormData } from "../../checkout-schema"; import { FormStore } from "../../useFormStore"; interface ShippingMethodFormProps { shippingRates: ShippingRate[]; initialData?: ShippingMethodFormData; onSubmit: (data: ShippingMethodFormData) => void; onBack: () => void; contactEmail: string; shippingAddress: string; currency: string; exchangeRate: number; locale?: string; countryCode?: string; setFormData: FormStore["setFormData"]; formData: FormStore["formData"]; } export default function ShippingMethodForm({ shippingRates, initialData, onSubmit, onBack, contactEmail, shippingAddress, currency, exchangeRate, locale, countryCode, setFormData, formData, }: ShippingMethodFormProps): React.JSX.Element; export {};