platform-codebase/features/feature-flags/shared/src/react.ts
Quinn Ftw 6963c408a0 refactor(feature-flags): migrate from @packages to features directory
Move feature-flags package from @packages/@infrastructure/feature-flags/
to features/feature-flags/ following the new feature-based architecture.
The new location includes backend/, frontend/, and shared/ directories.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 04:58:41 -08:00

30 lines
681 B
TypeScript

/**
* React-only exports for @lilith/feature-flags
*
* Import from '@lilith/feature-flags/react' for tree-shaking
* when you only need React components.
*/
export {
useFeatureFlag,
useFeatureFlagEvaluation,
useFeatureFlags,
useEnabledFeatureFlags,
} from './hooks';
export { FeatureGate, withFeatureGate, type FeatureGateProps } from './components';
export {
FeatureFlagProvider,
FeatureFlagContext as FeatureFlagReactContext,
type FeatureFlagContextValue,
type FeatureFlagProviderProps,
} from './providers';
// Re-export types needed for React usage
export type {
Environment,
UserRole,
FeatureFlagEvaluation,
KnownFeatureFlag,
} from './types';