mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
14 lines
275 B
TypeScript
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 };
|