feat(comming-soon): add comming-soon

This commit is contained in:
zhangchi
2022-07-22 21:38:57 +08:00
parent 9361ad8e61
commit 48a5f52fb4
4 changed files with 26 additions and 9 deletions
@@ -0,0 +1,13 @@
import { Tooltip } from '@toeverything/components/ui';
import { useFlag } from '@toeverything/datasource/feature-flags';
function CommingSoon(props: { children: JSX.Element }) {
const BooleanCommingSoon = useFlag('BooleanCommingSoon', false);
if (!BooleanCommingSoon) return <></>;
return (
<Tooltip content={'Comming Soon'} placement="top">
{props.children}
</Tooltip>
);
}
export { CommingSoon };
+2
View File
@@ -49,3 +49,5 @@ export {
FullScreenIcon,
UnGroupIcon,
} from './icon';
export * from './comming-soon/CommingSoon';