Remove old frontend
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
9
apps/console/src/hooks/useOrganizationId.ts
Normal file
9
apps/console/src/hooks/useOrganizationId.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useParams } from "react-router";
|
||||
|
||||
export function useOrganizationId(): string {
|
||||
const { organizationId } = useParams<{ organizationId?: string }>();
|
||||
if (!organizationId) {
|
||||
throw new Error("Cannot resolve organizationId in route params");
|
||||
}
|
||||
return organizationId;
|
||||
}
|
||||
Reference in New Issue
Block a user