1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00
vault-frontend/src/components/boris/Superpower/index.tsx
2022-01-09 19:03:01 +07:00

14 lines
275 B
TypeScript

import React, { FC } from 'react';
import { useAuth } from '~/hooks/auth/useAuth';
interface IProps {}
const Superpower: FC<IProps> = ({ children }) => {
const { isTester } = useAuth();
if (!isTester) return null;
return <>{children}</>;
};
export { Superpower };