All files / src/lib featureFlags.ts

100% Statements 4/4
100% Branches 2/2
100% Functions 2/2
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11      49x 49x       6605x    
import { useLocalStorage } from "usehooks-ts";
 
// Add feature flags here and the FeatureFlagCommands component will automatically create commands to toggle them on and off. Remember to remove any feature flags before they are released to all users.
export enum FeatureFlag {
  CUSTOM_PROPERTY_PACKAGES = "custom_property_packages",
}
 
export function useFeatureFlag(flag: FeatureFlag) {
  return useLocalStorage(flag, false);
}