mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 07:36:42 +08:00
14 lines
444 B
TypeScript
14 lines
444 B
TypeScript
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 };
|