Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

305 B
Raw Blame
import { useParams } from 'next/navigation';

// The workspace the path names (/workspaces/:workspaceId), or null off those routes.
export function useRouteWorkspaceId(): number | null {
  const { workspaceId } = useParams<{ workspaceId?: string }>();
  return workspaceId ? Number(workspaceId) : null;
}