import { useAuthStore } from '@/store/authStore' /** * Check if a feature flag is enabled for the current user. * Returns false for unknown keys (fail closed). */ export function useFeatureFlag(key: string): boolean { return useAuthStore((s) => s.featureFlags[key] ?? false) }