UNPKG

@twilio/flex-ui

Version:

Twilio Flex UI

47 lines (46 loc) 1.79 kB
import { ProfileConnectorInstanceType } from "../../../core/FlexDataClient"; import { TaskContextProps } from "../../context"; export declare enum ProfileConnectorTabsChildrenKeys { profileDetailsTab = "profile-details-tab", profileHistoryTab = "profile-history-tab", crmTab = "crm-tab" } /** * Tab properties. * @typedef ProfileConnectorTabs.TabProps * @property {string} [label] - Tab label. * @property {number} [index] - Tab index. */ interface TabProps { label?: string; index?: number; } /** * Properties of ProfileConnectorTabs. * @typedef ProfileConnectorTabs.ProfileConnectorTabsProps * @property {string} [selectedTabName] - Selected tab name. * @property {React.ReactNode} [profileViewTab] - Content for Profile tab. * @property {React.ReactNode} [timelineViewTab] - Content for Timeline tab. * @property {React.ReactNode} [crmViewTab] - Content for CRM tab. * @property {TabProps} [profileViewTabProps] - Properties for Profile tab. * @property {TabProps} [timelineViewTabProps] - Properties for Timeline tab. * @property {TabProps} [crmViewTabProps] - Properties for CRM tab. */ export interface ProfileConnectorTabsProps { selectedTabName?: string; profileConnectSid?: string; profileConnectorType?: ProfileConnectorInstanceType; profileViewTab?: React.ReactNode; timelineViewTab?: React.ReactNode; crmViewTab?: React.ReactNode; profileViewTabProps?: TabProps; timelineViewTabProps?: TabProps; crmViewTabProps?: TabProps; } /** * Properties of ProfileConnectorTabs. * @typedef {ProfileConnectorTabs.ProfileConnectorTabsProps} ProfileConnectorTabs.ProfileConnectorTabsChildrenProps */ export interface ProfileConnectorTabsChildrenProps extends TaskContextProps, ProfileConnectorTabsProps { } export {};