import type { AdminProfile } from "@/types/api/admin-auth"; /** 绑定代理节点的经营账号(非超管)。 */ export function isAgentOperator(profile: AdminProfile | null | undefined): boolean { return profile?.agent != null && profile.is_super_admin !== true; } /** 平台站点管理员(绑定 site_admin 角色、无代理节点)。 */ export function isSiteAdminOperator(profile: AdminProfile | null | undefined): boolean { return profile?.site != null && profile.is_super_admin !== true; }