import classNames from 'classnames'; import './HistoryCard.scss'; export interface HistoryCardProps { /** * Is this the principal call to action on the page? */ variant: 'primary' | 'secondary' | 'danger' | 'success' | 'warning'; /** * Details to display the title */ title: any; /** * State of the approval entity */ state: 'approved' | 'rejected' | 'review'; /** * Version of the approval entity */ version: string | number; /** * Comment message to display on the history card */ comment: string; /** * profileShortName is to display short name inside the profile avatar */ profileShortName: string; } const HistoryCard = ({ variant, title, state, comment, profileShortName, version, ...props }: HistoryCardProps) => { return (
{profileShortName}
{title}
{state} {version}
Comments:
{comment}
); }; export default HistoryCard;