mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 00:26:51 +08:00
feat(comming-soon): add comming-soon
This commit is contained in:
@@ -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 };
|
||||
@@ -49,3 +49,5 @@ export {
|
||||
FullScreenIcon,
|
||||
UnGroupIcon,
|
||||
} from './icon';
|
||||
|
||||
export * from './comming-soon/CommingSoon';
|
||||
|
||||
Reference in New Issue
Block a user