import { useState } from "react"; import { Search } from "lucide-react"; // types import { WidgetProps } from "@/components/dashboard/widgets"; // components import { DefaultCollaboratorsList } from "./default-list"; import { SearchedCollaboratorsList } from "./search-list"; const PER_PAGE = 8; export const RecentCollaboratorsWidget: React.FC = (props) => { const { dashboardId, workspaceSlug } = props; // states const [searchQuery, setSearchQuery] = useState(""); return (

Collaborators

View and find all members you collaborate with across projects

setSearchQuery(e.target.value)} />
{searchQuery.trim() !== "" ? ( ) : ( )}
); };