B2B-88: add starter kit structure and elements

This commit is contained in:
devmc-ee
2025-06-08 16:18:30 +03:00
parent 657a36a298
commit e7b25600cb
1280 changed files with 77893 additions and 5688 deletions

View File

@@ -0,0 +1,22 @@
'use client';
import { useContext } from 'react';
import { TeamAccountWorkspaceContext } from '../components';
/**
* @name useTeamAccountWorkspace
* @description A hook to access the account workspace data.
* @returns The account workspace data.
*/
export function useTeamAccountWorkspace() {
const ctx = useContext(TeamAccountWorkspaceContext);
if (!ctx) {
throw new Error(
'useTeamAccountWorkspace must be used within a TeamAccountWorkspaceContext.Provider. This is only provided within the account workspace /home/[account]',
);
}
return ctx;
}