import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import { createStyles, WithStyles, withStyles } from "@material-ui/core/styles"; import Typography from "@material-ui/core/Typography"; import React from "react"; import AddressEdit from "@saleor/components/AddressEdit"; import CardTitle from "@saleor/components/CardTitle"; import { FormSpacer } from "@saleor/components/FormSpacer"; import { SingleAutocompleteChoiceType } from "@saleor/components/SingleAutocompleteSelectField"; import i18n from "../../../i18n"; import { FormErrors } from "../../../types"; import { AddressTypeInput } from "../../types"; const styles = createStyles({ overflow: { overflow: "visible" } }); export interface CustomerCreateAddressProps extends WithStyles { countries: SingleAutocompleteChoiceType[]; countryDisplayName: string; data: AddressTypeInput; disabled: boolean; errors: FormErrors; onChange(event: React.ChangeEvent); onCountryChange(event: React.ChangeEvent); } const CustomerCreateAddress = withStyles(styles, { name: "CustomerCreateAddress" })( ({ classes, countries, countryDisplayName, data, disabled, errors, onChange, onCountryChange }: CustomerCreateAddressProps) => ( {i18n.t("The primary address of this customer.")} ) ); CustomerCreateAddress.displayName = "CustomerCreateAddress"; export default CustomerCreateAddress;