import React from 'react'; import { Address } from './Address'; import { PricesAndHours } from './PricesAndHours'; import { DeliveryProps } from './ContextProps'; import { BusinessHours, PikcupPointType } from './PikcupPointType'; export interface RegionalizationProps { deliveryPrice?: number; setMethod?: (method?: string) => void; setPickupName?: (pickupName?: string) => void; setCity?: (city?: string) => void; setUf?: (uf?: string) => void; setPickupTimes?: (pickupTimes?: BusinessHours) => void; pricesAndHours: PricesAndHours; setModalOpen: (modalOpen: boolean) => void; inputPostalCode: string; setInputPostalCode: (value: string) => void; sendPostalCode: () => Promise<{ isValid?: boolean; address?: Address; deliveryInfos?: DeliveryProps; }>; status: Status; setStatus: (status: Status) => void; pickupPoints: PikcupPointType[]; titleText?: string; moreInfosText?: string; textBackButton?: string; confirmButton?: string; editAddress?: string; delivery?: { title?: string; labelPrice?: string; price?: number; labelScheduling?: string; scheduling?: string; searchButton?: string; linkHref?: string; linkText?: string; titleOk?: string; labelAddress?: string; confirmButton?: string; }; pickup?: { title?: string; labelPrice?: string; price?: number; labelScheduling?: string; scheduling?: string; buttonOpenStores?: string; labelFilter?: string; labelStores?: string; divider?: string; chooseStore?: string; titleOk?: string; labelAddress?: string; confirmButton?: string; }; regionalizeCatalog?: (postalCodeChoiced?: string) => void; children?: React.ReactNode; } export interface Status { status?: 'failed'; message?: string; loading?: boolean; }