import React from 'react'; import type { Product, ProductSwitcherOrganization } from './types'; export type ProductSwitcherProps = { /** * This is prop is intended for use in Dovetail only. * When the product-switcher is used outside of MainNavigation context using a bridge to hook it up with the navigation this flag should be set to `true`. */ singleTabStop?: boolean; /** * Expects an array of applications the user has access to. * If there are not at least two, the icon will not render. */ products: Product[]; /** * If provided, will render co-branding for an organization * * `ProductSwitcherOrganization` has this shape: * * ```ts * { * name: string * domain: string * avatar: { * light: string | React.ReactElement * dark: string | React.ReactElement * } * } * ``` * * Avatar values for light and dark can either be a URL or the [Avatar component](https://planview-ds.github.io/react-pvds/?path=/docs/pv-uikit-avatar--docs) from `@planview/pv-uikit` */ organization?: ProductSwitcherOrganization; /** * call-back on navigate in list */ onActivate?: (product: Product) => void; }; /** * This component, implementing the [Design System specs](https://design.planview.com/components/product-switcher/product-switcher-panel), is meant to be used when you want to * manually do API calls and render the Product switcher inside a `NavigationBar`, meaning you are **not** using the switcher published via dovetail. * * `import { ProductSwitcher }` from '@planview/pv-toolbar' */ export declare const ProductSwitcher: ({ products, organization, onActivate, singleTabStop, }: ProductSwitcherProps) => React.ReactElement | null; //# sourceMappingURL=product-switcher.d.ts.map