import React from "react"; import { useIntl } from "react-intl"; import AppHeader from "@saleor/components/AppHeader"; import Container from "@saleor/components/Container"; import Grid from "@saleor/components/Grid"; import PageHeader from "@saleor/components/PageHeader"; import { sectionNames } from "@saleor/intl"; import { ListActions, PageListProps } from "@saleor/types"; import { WeightUnitsEnum } from "@saleor/types/globalTypes"; import { ShippingZoneFragment } from "../../types/ShippingZoneFragment"; import ShippingWeightUnitForm from "../ShippingWeightUnitForm"; import ShippingZonesList from "../ShippingZonesList"; export interface ShippingZonesListPageProps extends PageListProps, ListActions { defaultWeightUnit: WeightUnitsEnum; shippingZones: ShippingZoneFragment[]; onBack: () => void; onRemove: (id: string) => void; onSubmit: (unit: WeightUnitsEnum) => void; } const ShippingZonesListPage: React.StatelessComponent< ShippingZonesListPageProps > = ({ defaultWeightUnit, disabled, onBack, onSubmit, ...listProps }) => { const intl = useIntl(); return ( {intl.formatMessage(sectionNames.configuration)}
); }; ShippingZonesListPage.displayName = "ShippingZonesListPage"; export default ShippingZonesListPage;