File size: 235 Bytes
5539271
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import { computed } from 'vue'
import { useFeatureFlagStore, type FeatureFlag } from './store'

export function useFeatureFlag(flag: FeatureFlag) {
  const store = useFeatureFlagStore()
  return computed(() => store.isEnabled(flag))
}