UNPKG

react-integration-buttons

Version:

A TypeScript React component for Microsoft Teams and ServiceNow integrations with deep linking support

26 lines 702 B
export type Platform = "teams" | "servicenow"; export interface BaseProps { platform: Platform; buttonText?: string; className?: string; style?: React.CSSProperties; } export interface TeamsProps extends BaseProps { platform: "teams"; users: string; message: string; topicName?: string; } export interface ServiceNowProps extends BaseProps { platform: "servicenow"; instanceUrl: string; table?: string; fields?: Record<string, string | number>; } export type IntegrationButtonProps = TeamsProps | ServiceNowProps; export interface PlatformConfig { defaultText: string; defaultColor: string; icon: string; } //# sourceMappingURL=types.d.ts.map