first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import useAuthStore from "@/stores/user";
|
||||
|
||||
function useAuth() {
|
||||
const access = useAuthStore(state => state.access);
|
||||
|
||||
const auth = (key: string) => access.includes(key);
|
||||
|
||||
return {auth};
|
||||
}
|
||||
|
||||
export default useAuth;
|
||||
Reference in New Issue
Block a user