import "./style.scss"; import Select from "./Select"; import { SearchIcon, GridTwoColIcon, GridThreeColIcon, HeartIcon, CloseIcon, RotateIcon } from "../icons"; import { FILTER_OPTIONS } from "../constants"; import { SmartPostShowLogoIcon } from "../../icons/icons"; const { __ } = wp.i18n; export const FilterPart = (props) => { const { changeStates, column, showWishList, _fetchFile, fetching, searchQuery, fields, fieldValue, fieldOptions, wishListArr, designLibrary=false, } = props; return (
{ // searchQuery && searchQuery(e.target.value) changeStates && changeStates("search", e.target.value); }} />
{!designLibrary && (
{fields?.filter && ( <> { changeStates("freePro", v); }} options={FILTER_OPTIONS.FREE_PRO.map((option) => ({ ...option, label: option.label, }))} /> )}
)}
{fields?.trend && fieldValue?.trend && (