mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-16 16:46:38 +01:00
7 lines
200 B
TypeScript
7 lines
200 B
TypeScript
import { useParams } from 'react-router-dom';
|
|
|
|
export function useActiveWorkspaceId(): string | null {
|
|
const { workspaceId } = useParams<{ workspaceId?: string }>();
|
|
return workspaceId ?? null;
|
|
}
|