//
// Copyright IBM Corp. 2016, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@import 'feature-flags';

/// Used for enabling features
/// @access public
/// @param {String} $feature - feature from $default-feature-flags
/// @example @if feature-flag-enabled('components-x') { ... } will include code inside of { } only if components-x is true
@function feature-flag-enabled($feature) {
  @if global-variable-exists(feature-flags) == true and map-get($feature-flags, $feature) == true {
    @return true;
  }
  @return false;
}
