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