import { Button, Card } from "@material-ui/core"; import { AttributeListUrlSortField } from "@saleor/attributes/urls"; import AppHeader from "@saleor/components/AppHeader"; import FilterBar from "@saleor/components/FilterBar"; import { sectionNames } from "@saleor/intl"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; import Container from "../../../components/Container"; import PageHeader from "../../../components/PageHeader"; import { FilterPageProps, ListActions, PageListProps, SortPage, TabPageProps } from "../../../types"; import { AttributeList_attributes_edges_node } from "../../types/AttributeList"; import AttributeList from "../AttributeList/AttributeList"; import { AttributeFilterKeys, AttributeListFilterOpts, createFilterStructure } from "./filters"; export interface AttributeListPageProps extends PageListProps, ListActions, FilterPageProps, SortPage, TabPageProps { attributes: AttributeList_attributes_edges_node[]; onBack: () => void; } const AttributeListPage: React.FC = ({ filterOpts, initialSearch, onAdd, onBack, onFilterChange, onSearchChange, currentTab, onAll, onTabChange, onTabDelete, onTabSave, tabs, ...listProps }) => { const intl = useIntl(); const structure = createFilterStructure(intl, filterOpts); return ( ); }; AttributeListPage.displayName = "AttributeListPage"; export default AttributeListPage;