import { Card } from "@material-ui/core"; import { attributeAddUrl, AttributeListUrlSortField, } from "@saleor/attributes/urls"; import { Backlink } from "@saleor/components/Backlink"; import { Button } from "@saleor/components/Button"; import FilterBar from "@saleor/components/FilterBar"; import { configurationMenuUrl } from "@saleor/configuration"; import { AttributeFragment } from "@saleor/graphql"; 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 from "../AttributeList/AttributeList"; import { AttributeFilterKeys, AttributeListFilterOpts, createFilterStructure, } from "./filters"; export interface AttributeListPageProps extends PageListProps, ListActions, FilterPageProps, SortPage, TabPageProps { attributes: AttributeFragment[]; } const AttributeListPage: React.FC = ({ filterOpts, initialSearch, onFilterChange, onSearchChange, currentTab, onAll, onTabChange, onTabDelete, onTabSave, tabs, ...listProps }) => { const intl = useIntl(); const structure = createFilterStructure(intl, filterOpts); return ( ); }; AttributeListPage.displayName = "AttributeListPage"; export default AttributeListPage;