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 }
}
