Align the project baseline with the latest admin interface styling and layout structure while documenting setup and usage updates in README.
7 lines
214 B
TypeScript
7 lines
214 B
TypeScript
import { useAuthStore } from "../store/authStore";
|
|
|
|
export function useIsSuperuser(): boolean {
|
|
const user = useAuthStore((state) => state.user);
|
|
return Boolean(user?.role === "admin" && user?.is_superuser);
|
|
}
|