import { Filter, Search } from 'lucide-react' import Link from 'next/link' import { useParams } from 'common' import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled' import { PROJECT_STATUS } from 'lib/constants' import { Button, Checkbox_Shadcn_, Input, Label_Shadcn_, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_, Popover_Shadcn_, } from 'ui' interface HomePageActionsProps { search: string filterStatus: string[] hideNewProject?: boolean setSearch: (value: string) => void setFilterStatus: (value: string[]) => void } const HomePageActions = ({ search, filterStatus, hideNewProject = false, setSearch, setFilterStatus, }: HomePageActionsProps) => { const { slug } = useParams() const projectCreationEnabled = useIsFeatureEnabled('projects:create') return (
{projectCreationEnabled && !hideNewProject && ( )}
} className="w-full flex-1 md:w-64 [&>div>div>div>input]:!pl-7 [&>div>div>div>div]:!pl-2" value={search} onChange={(event) => setSearch(event.target.value)} />
))}
) } export default HomePageActions