UNPKG

@hhgtech/hhg-components

Version:
35 lines (34 loc) 1.68 kB
import React, { HTMLAttributes } from 'react'; import { BabyVaccinationRecord, BabyVaccineDetail } from "../../../interfaces/types"; interface WithVaccineCardProps extends HTMLAttributes<HTMLDivElement> { vaccineRecord?: BabyVaccinationRecord; vaccineDetail?: BabyVaccineDetail; isCurrent?: boolean; onToggle?(status: boolean, record: BabyVaccinationRecord): void; onTitleClick?(record: BabyVaccinationRecord): void; } export interface VaccineCardProps extends WithVaccineCardProps, HTMLAttributes<HTMLDivElement> { vaccineRecord?: BabyVaccinationRecord; vaccineDetail?: BabyVaccineDetail; isCurrent?: boolean; onToggle?(status: boolean, record: BabyVaccinationRecord): void; onTitleClick?(record: BabyVaccinationRecord): void; showTopDetail?: boolean; } export declare function withVaccineCard<T extends WithVaccineCardProps = WithVaccineCardProps>(WrappedComponent: React.ComponentType<T>): { ({ vaccineRecord, isCurrent, onToggle, ...rest }: VaccineCardProps): React.JSX.Element; displayName: string; }; export declare const VaccineCardTimeline: React.MemoExoticComponent<{ ({ vaccineRecord, isCurrent, onToggle, ...rest }: VaccineCardProps): React.JSX.Element; displayName: string; }>; export declare const VaccineCardModal: React.MemoExoticComponent<{ ({ vaccineRecord, isCurrent, onToggle, ...rest }: VaccineCardProps): React.JSX.Element; displayName: string; }>; export declare const VaccineCardImmunization: React.MemoExoticComponent<{ ({ vaccineRecord, isCurrent, onToggle, ...rest }: VaccineCardProps): React.JSX.Element; displayName: string; }>; export {};