import React from 'react'; import './executionCancellationReason.less'; interface IExecutionCancellationReasonProps { cancellationReason: string; } export function ExecutionCancellationReason({ cancellationReason }: IExecutionCancellationReasonProps) { const [isExpanded, setIsExpanded] = React.useState(true); return ( <>
setIsExpanded(!isExpanded)}> Cancellation Reason
{isExpanded &&
{cancellationReason}
} ); }