UNPKG

matrix-react-sdk

Version:
18 lines (17 loc) 612 B
import React, { ComponentType, ReactNode } from "react"; import { XOR } from "../../../@types/common"; export interface IProps { description: ReactNode; detail?: ReactNode; primaryLabel: string; PrimaryIcon?: ComponentType<React.SVGAttributes<SVGElement>>; onPrimaryClick(): void; } interface IPropsExtended extends IProps { secondaryLabel: string; SecondaryIcon?: ComponentType<React.SVGAttributes<SVGElement>>; destructive?: "primary" | "secondary"; onSecondaryClick(): void; } declare const GenericToast: React.FC<XOR<IPropsExtended, IProps>>; export default GenericToast;