mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-05 08:06:19 +00:00
Two hand-rolled copies of the add-on/brainMode rule replaced by a single shared helper, and the one-line isCompanyBrainOrganization wrapper dropped. No behaviour change.
8 lines
294 B
TypeScript
8 lines
294 B
TypeScript
import { useAuth } from "@lib/auth-context"
|
|
import { isCompanyBrainOrg } from "@/lib/billing-utils"
|
|
|
|
export function useHasCompanyBrain(): boolean {
|
|
const { org } = useAuth()
|
|
const metadata = org?.metadata as Record<string, unknown> | string | undefined
|
|
return isCompanyBrainOrg(metadata)
|
|
}
|