import { useRouter } from "next/router"; import { Command } from "cmdk"; // icons import { SettingIcon } from "components/icons"; type Props = { closePalette: () => void; }; export const CommandPaletteWorkspaceSettingsActions: React.FC = (props) => { const { closePalette } = props; const router = useRouter(); const { workspaceSlug } = router.query; const redirect = (path: string) => { closePalette(); router.push(path); }; return ( <> redirect(`/${workspaceSlug}/settings`)} className="focus:outline-none">
General
redirect(`/${workspaceSlug}/settings/members`)} className="focus:outline-none">
Members
redirect(`/${workspaceSlug}/settings/billing`)} className="focus:outline-none">
Billing and Plans
redirect(`/${workspaceSlug}/settings/integrations`)} className="focus:outline-none">
Integrations
redirect(`/${workspaceSlug}/settings/imports`)} className="focus:outline-none">
Import
redirect(`/${workspaceSlug}/settings/exports`)} className="focus:outline-none">
Export
); };