@bothub-chat/ui
Version:
Bothub UI Components
40 lines (39 loc) • 1.03 kB
TypeScript
import React from 'react';
export interface ReferralCardPriceProps {
className?: string;
value?: number;
min?: number;
max?: number;
fullWidth?: boolean;
skeleton?: boolean;
minText: string;
maxText: string;
}
export interface ReferralCardCapsRewardProps {
className?: string;
value?: number;
min?: number;
max?: number;
rewardText: string;
fullWidth?: boolean;
skeleton?: boolean;
maxText: string;
}
export interface ReferralCardDefaultProps {
name: string;
aiName?: string;
price?: ReferralCardPriceProps;
capsReward?: ReferralCardCapsRewardProps;
dateCreated: string;
skeleton?: false;
}
export interface ReferralCardSkeletonProps {
skeleton: true;
}
export type ReferralCardProps = (ReferralCardDefaultProps | ReferralCardSkeletonProps) & {
className?: string;
withdraw: React.ReactNode;
} & React.PropsWithChildren;
export declare const ReferralCard: React.FC<ReferralCardProps>;
export * from './styled';
export * from './link';