import { Button, Typography } from "@material-ui/core"; import Grid from "@saleor/components/Grid"; import { makeStyles } from "@saleor/theme"; import React from "react"; const useStyles = makeStyles( theme => ({ attributeSection: { "&:last-of-type": { paddingBottom: 0 }, padding: theme.spacing(2, 0) }, attributeSectionButton: { float: "right" }, attributeSectionLabel: { alignItems: "center", display: "flex" } }), { name: "ExtendedAttributeRow" } ); interface ExtendedAttributeRowProps { label: string; selectLabel: string; disabled: boolean; onSelect: () => void; } const ExtendedAttributeRow: React.FC = props => { const { label, selectLabel, disabled, onSelect, children } = props; const classes = useStyles(props); return ( <>
{label}
{children}
); }; ExtendedAttributeRow.displayName = "ExtendedAttributeRow"; export default ExtendedAttributeRow;