import { getAllUrlSearchParam } from "@joincivil/utils" ; export class FeatureFlagService { public featureFlags : string [ ] ; constructor ( featureFlags ? ) { this . featureFlags = ( featureFlags || [ ] ) . concat ( getAllUrlSearchParam ( "feature-flag" ) ) ; } public featureEnabled ( feature ) { return this . featureFlags . includes ( feature ) ; } }