import React, { useState } from "react"; // layouts import { AppLayout } from "layouts/app-layout"; // components import { GlobalDefaultViewListItem, GlobalViewsList } from "components/workspace"; import { GlobalIssuesHeader } from "components/headers"; // ui import { Input } from "@plane/ui"; // icons import { Search } from "lucide-react"; // types import type { NextPage } from "next"; // constants import { DEFAULT_GLOBAL_VIEWS_LIST } from "constants/workspace"; const WorkspaceViews: NextPage = () => { const [query, setQuery] = useState(""); return ( }>
setQuery(e.target.value)} placeholder="Search" mode="true-transparent" />
{DEFAULT_GLOBAL_VIEWS_LIST.filter((v) => v.label.toLowerCase().includes(query.toLowerCase())).map((option) => ( ))}
); }; export default WorkspaceViews;