2024-08-13 07:14:41 +00:00
|
|
|
import classNames from 'classnames';
|
|
|
|
|
2023-05-23 08:04:10 +00:00
|
|
|
interface Props {
|
2024-08-21 07:08:58 +00:00
|
|
|
message: React.ReactNode;
|
|
|
|
label: React.ReactNode;
|
2023-05-23 08:04:10 +00:00
|
|
|
url: string;
|
2024-08-13 07:14:41 +00:00
|
|
|
className?: string;
|
2023-05-23 08:04:10 +00:00
|
|
|
}
|
|
|
|
|
2024-08-21 07:08:58 +00:00
|
|
|
export const TimelineHint: React.FC<Props> = ({
|
|
|
|
className,
|
|
|
|
message,
|
|
|
|
label,
|
|
|
|
url,
|
|
|
|
}) => (
|
2024-08-13 07:14:41 +00:00
|
|
|
<div className={classNames('timeline-hint', className)}>
|
2024-08-21 07:08:58 +00:00
|
|
|
<p>{message}</p>
|
|
|
|
|
2023-05-23 08:04:10 +00:00
|
|
|
<a href={url} target='_blank' rel='noopener noreferrer'>
|
2024-08-21 07:08:58 +00:00
|
|
|
{label}
|
2023-05-23 08:04:10 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
);
|