@hhgtech/hhg-components
Version:
Hello Health Group common components
38 lines (37 loc) • 1.02 kB
TypeScript
import React, { CSSProperties } from 'react';
export type ArticleDetailCardType = {
article: {
image?: string;
defaultImage?: string;
articleType: string;
articleTitle: string;
articleTypeColor?: string;
};
doctor: {
doctorName: string;
doctorAvatar?: string;
defaultDoctorAvatar?: string;
};
};
export type ArticleDetailCardProps = {
article: {
id?: string | number;
image?: string;
defaultImage?: string;
articleType: string;
articleTitle: string;
articleTypeColor?: string;
};
doctor: {
id?: string | number;
doctorName: string;
doctorAvatar?: string;
defaultDoctorAvatar?: string;
};
handleClick?: () => void;
className?: string;
style?: CSSProperties;
altText?: string;
};
declare const ArticleDetailCard: (props: ArticleDetailCardProps) => React.JSX.Element;
export { ArticleDetailCard };