import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import TextField from "@material-ui/core/TextField"; import CardTitle from "@saleor/components/CardTitle"; import { AccountErrorFragment } from "@saleor/customers/types/AccountErrorFragment"; import { FormChange } from "@saleor/hooks/useForm"; import { getFormErrors } from "@saleor/utils/errors"; import getAccountErrorMessage from "@saleor/utils/errors/account"; import React from "react"; import { useIntl } from "react-intl"; export interface ServiceInfoProps { data: { name: string; }; disabled: boolean; errors: AccountErrorFragment[]; onChange: FormChange; } const ServiceInfo: React.FC = ({ data, disabled, errors, onChange }) => { const intl = useIntl(); const formErrors = getFormErrors(["name"], errors); return ( ); }; ServiceInfo.displayName = "ServiceInfo"; export default ServiceInfo;