mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
17 lines
331 B
TypeScript
17 lines
331 B
TypeScript
import React, { FC } from 'react';
|
|
|
|
import { observer } from 'mobx-react-lite';
|
|
|
|
import { useAuth } from '~/hooks/auth/useAuth';
|
|
|
|
interface IProps {}
|
|
|
|
const Superpower: FC<IProps> = observer(({ children }) => {
|
|
const { isTester } = useAuth();
|
|
|
|
if (!isTester) return null;
|
|
|
|
return <>{children}</>;
|
|
});
|
|
|
|
export { Superpower };
|