mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-25 08:59:55 +02:00
Optimized a few components
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { useParams } from 'react-router-dom';
|
||||
|
||||
export function useActiveWorkspaceId(): string | null {
|
||||
const { workspaceId } = useParams<{ workspaceId?: string }>();
|
||||
return workspaceId ?? null;
|
||||
}
|
||||
Reference in New Issue
Block a user