UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

35 lines (34 loc) 993 B
import { TariffType } from './types'; type TariffCardCommonProps = { label: string; variant: TariffType; description?: string; extraText: string; currency: string; price: string; discount?: string; caps: string; popularText?: string; onClick?: (e: React.MouseEvent) => void; }; type TariffCardRadioProps = TariffCardCommonProps & { control?: 'radio'; selected?: boolean; button?: never; }; type TariffCardButtonProps = TariffCardCommonProps & { control: 'button'; button: React.ReactNode; selected?: never; }; type TariffCardProps = TariffCardRadioProps | TariffCardButtonProps; type TariffCardEnterpriseProps = { label: string; variant: 'ENTERPRISE'; description?: string; extraText: string; button: React.ReactNode; }; export declare const TariffCard: React.FC<TariffCardProps | TariffCardEnterpriseProps>; export { TariffCardEnterpriseButton, TariffCardArrow } from './styled'; export { type TariffType };