Reorganize admin components to help bundling
This commit is contained in:
21
web/components/admin/InfoTip.tsx
Normal file
21
web/components/admin/InfoTip.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user