import React from "react";
import useFeature from "./useFeature";
const FeatureToggle = ({ featureId, fallback, children }) => {
    const feature = useFeature(featureId);
    if (!feature || !feature.enabled) {
        return React.createElement(React.Fragment, null, fallback || null);
    }
    return React.createElement(React.Fragment, null, children || null);
};
export default FeatureToggle;
//# sourceMappingURL=FeatureToggle.js.map