refactor: project configuration

This commit is contained in:
Tristan Yang
2023-05-15 16:46:50 +08:00
parent 187ffd24d1
commit 20b907aae4
293 changed files with 991 additions and 964 deletions
+14
View File
@@ -0,0 +1,14 @@
import { FC, ReactElement } from "react";
import useTabBroadcast from "@/hooks/useTabBroadcast";
import InactiveScreen from "./InactiveScreen";
interface Props {
children: ReactElement;
}
const RequireSingleTab: FC<Props> = ({ children }) => {
const { tabActive } = useTabBroadcast();
// console.log("authhhhh", allowGuest, token, guest);
return tabActive ? children : <InactiveScreen />;
};
export default RequireSingleTab;