You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
392 B
20 lines
392 B
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> |
|
); |
|
}
|
|
|