Skip to main content

Interface: CompanySwitcherProps

Defined in: components/CompanySwitcher.tsx:16

Properties​

graphqlClient?​

optional graphqlClient?: GraphQLClient

Defined in: components/CompanySwitcher.tsx:21

GraphQL client for the Propeller SDK


icon?​

optional icon?: string

Defined in: components/CompanySwitcher.tsx:24

Icon identifier for the company switcher trigger button.

Default​

'default-company-switch-icon'

labels?​

optional labels?: Record<string, string>

Defined in: components/CompanySwitcher.tsx:34

Translated labels keyed by the slugs used inside the component (see getLabel calls). Missing keys fall back to the English defaults.


onCompanyChange​

onCompanyChange: (company) => void

Defined in: components/CompanySwitcher.tsx:30

Callback fired when the user selects a company.

Parameters​

company​

Company

Returns​

void


selectedCompanyId?​

optional selectedCompanyId?: number

Defined in: components/CompanySwitcher.tsx:27

Currently selected company ID (from CompanyContext). Syncs the switcher with external state.


triggerClassName?​

optional triggerClassName?: string

Defined in: components/CompanySwitcher.tsx:37

Additional class name for the switcher's trigger button.


user​

user: Contact

Defined in: components/CompanySwitcher.tsx:18

The contact to whom the companies are assigned. Default company is user.company, all companies are in user.companies.