import type { ReactNode } from "react";
import { type FeatureFlagName, canViewFeature } from "./config";

export const FeatureEnabled = ({
	featureFlag,
	children,
}: { featureFlag: FeatureFlagName; children: ReactNode }) => {
	return canViewFeature(featureFlag) ? children : null;
};
