Initial commit from monorepo
This commit is contained in:
11
app/composables/useActiveTeam.ts
Normal file
11
app/composables/useActiveTeam.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export const useActiveTeam = () => {
|
||||
const activeTeamId = useState<string | null>('activeTeamId', () => null)
|
||||
const activeLogtoOrgId = useState<string | null>('activeLogtoOrgId', () => null)
|
||||
|
||||
const setActiveTeam = (teamId: string | null, logtoOrgId?: string | null) => {
|
||||
activeTeamId.value = teamId
|
||||
activeLogtoOrgId.value = logtoOrgId ?? null
|
||||
}
|
||||
|
||||
return { activeTeamId, activeLogtoOrgId, setActiveTeam }
|
||||
}
|
||||
Reference in New Issue
Block a user