import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import { makeStyles } from "@material-ui/core/styles"; import Typography from "@material-ui/core/Typography"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; 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 { UserError } from "../../../types"; import { AddressTypeInput } from "../../types"; const useStyles = makeStyles( { overflow: { overflow: "visible" } }, { name: "CustomerCreateAddress" } ); export interface CustomerCreateAddressProps { countries: SingleAutocompleteChoiceType[]; countryDisplayName: string; data: AddressTypeInput; disabled: boolean; errors: UserError[]; onChange(event: React.ChangeEvent); onCountryChange(event: React.ChangeEvent); } const CustomerCreateAddress: React.FC = props => { const { countries, countryDisplayName, data, disabled, errors, onChange, onCountryChange } = props; const classes = useStyles(props); const intl = useIntl(); return ( ); }; CustomerCreateAddress.displayName = "CustomerCreateAddress"; export default CustomerCreateAddress;