owncast/web/components/info-tip.tsx

21 lines
392 B
TypeScript
Raw Normal View History

2021-02-04 20:19:16 +03:00
import { InfoCircleOutlined } from '@ant-design/icons';
import { Tooltip } from 'antd';
2021-01-03 12:54:04 +03:00
interface InfoTipProps {
tip: string | null;
}
export default function InfoTip({ tip }: InfoTipProps) {
if (tip === '' || tip === null) {
return null;
}
return (
<span className="info-tip">
<Tooltip title={tip}>
<InfoCircleOutlined />
</Tooltip>
</span>
);
}