mirror of
https://github.com/owncast/owncast.git
synced 2025-01-06 08:37:32 +03:00
21 lines
425 B
TypeScript
21 lines
425 B
TypeScript
import { InfoCircleOutlined } from '@ant-design/icons';
|
|
import { Tooltip } from 'antd';
|
|
import { FC } from 'react';
|
|
|
|
export type InfoTipProps = {
|
|
tip: string | null;
|
|
};
|
|
|
|
export const InfoTip: FC<InfoTipProps> = ({ tip }) => {
|
|
if (tip === '' || tip === null) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<span className="info-tip">
|
|
<Tooltip title={tip}>
|
|
<InfoCircleOutlined />
|
|
</Tooltip>
|
|
</span>
|
|
);
|
|
};
|