import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import TextField from "@material-ui/core/TextField"; import Typography from "@material-ui/core/Typography"; import React from "react"; import CardSpacer from "@saleor/components/CardSpacer"; import CardTitle from "@saleor/components/CardTitle"; import ControlledSwitch from "@saleor/components/ControlledSwitch"; import FormSpacer from "@saleor/components/FormSpacer"; import Hr from "@saleor/components/Hr"; import i18n from "@saleor/i18n"; import { FormErrors } from "@saleor/types"; import { AttributePageFormData } from "../AttributePage"; export interface AttributePropertiesProps { data: AttributePageFormData; disabled: boolean; errors: FormErrors<"storefrontSearchPosition">; onChange: (event: React.ChangeEvent) => void; } const AttributeProperties: React.FC = ({ data, errors, disabled, onChange }) => ( {/* {i18n.t("General Properties")}
{i18n.t("Variant Attribute")} {i18n.t( "If enabled, you'll be able to use this attribute to create product variants" )} } onChange={onChange} /> */} {i18n.t("Storefront Properties")}
{data.filterableInStorefront && ( )} {i18n.t("Dashboard Properties")}
{i18n.t( "If enabled, you’ll be able to use this attribute to filter products in product list." )} } onChange={onChange} /> {i18n.t( "If enable this attribute can be used as a column in product table." )} } onChange={onChange} />
); AttributeProperties.displayName = "AttributeProperties"; export default AttributeProperties;