mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 16:21:59 +08:00

* fix: solved kafka feature feedbacks * fix: changed coming soon text to - join slack community
59 lines
1.3 KiB
TypeScript
59 lines
1.3 KiB
TypeScript
/* eslint-disable react/destructuring-assignment */
|
|
import './MQCommon.styles.scss';
|
|
|
|
import { Color } from '@signozhq/design-tokens';
|
|
import { Tooltip } from 'antd';
|
|
import { DefaultOptionType } from 'antd/es/select';
|
|
import { Info } from 'lucide-react';
|
|
|
|
export function ComingSoon(): JSX.Element {
|
|
return (
|
|
<Tooltip
|
|
title={
|
|
<div>
|
|
Join our Slack community for more details:{' '}
|
|
<a
|
|
href="https://signoz.io/slack"
|
|
rel="noopener noreferrer"
|
|
target="_blank"
|
|
onClick={(e): void => e.stopPropagation()}
|
|
>
|
|
SigNoz Community
|
|
</a>
|
|
</div>
|
|
}
|
|
placement="top"
|
|
overlayClassName="tooltip-overlay"
|
|
>
|
|
<div className="coming-soon">
|
|
<div className="coming-soon__text">Coming Soon</div>
|
|
<div className="coming-soon__icon">
|
|
<Info size={10} color={Color.BG_SIENNA_400} />
|
|
</div>
|
|
</div>
|
|
</Tooltip>
|
|
);
|
|
}
|
|
|
|
export function SelectMaxTagPlaceholder(
|
|
omittedValues: Partial<DefaultOptionType>[],
|
|
): JSX.Element {
|
|
return (
|
|
<Tooltip title={omittedValues.map(({ value }) => value).join(', ')}>
|
|
<span>+ {omittedValues.length} </span>
|
|
</Tooltip>
|
|
);
|
|
}
|
|
|
|
export function SelectLabelWithComingSoon({
|
|
label,
|
|
}: {
|
|
label: string;
|
|
}): JSX.Element {
|
|
return (
|
|
<div className="select-label-with-coming-soon">
|
|
{label} <ComingSoon />
|
|
</div>
|
|
);
|
|
}
|