mirror of
https://github.com/owncast/owncast.git
synced 2024-12-23 09:40:49 +03:00
a123967645
* move components folder and fix build errors Fixes https://github.com/owncast/owncast/issues/689 * Prettified Code! Co-authored-by: nebunez <nebunez@users.noreply.github.com>
20 lines
392 B
TypeScript
20 lines
392 B
TypeScript
import { InfoCircleOutlined } from '@ant-design/icons';
|
|
import { Tooltip } from 'antd';
|
|
|
|
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>
|
|
);
|
|
}
|