import { Card } from "@material-ui/core"; import { collectionAddUrl } from "@saleor/collections/urls"; import { Button } from "@saleor/components/Button"; import { Container } from "@saleor/components/Container"; import { getByName } from "@saleor/components/Filter/utils"; import FilterBar from "@saleor/components/FilterBar"; import PageHeader from "@saleor/components/PageHeader"; import { sectionNames } from "@saleor/intl"; import { FilterPageProps, PageListProps, SearchPageProps, TabPageProps, } from "@saleor/types"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; import CollectionList, { CollectionListProps, } from "../CollectionList/CollectionList"; import { CollectionFilterKeys, CollectionListFilterOpts, createFilterStructure, } from "./filters"; export interface CollectionListPageProps extends PageListProps, SearchPageProps, TabPageProps, FilterPageProps, CollectionListProps {} const CollectionListPage: React.FC = ({ currentTab, disabled, initialSearch, onAll, onSearchChange, onTabChange, onTabDelete, onTabSave, selectedChannelId, tabs, filterOpts, onFilterChange, onFilterAttributeFocus, ...listProps }) => { const intl = useIntl(); const filterStructure = createFilterStructure(intl, filterOpts); const filterDependency = filterStructure.find(getByName("channel")); return ( ); }; CollectionListPage.displayName = "CollectionListPage"; export default CollectionListPage;