import { useSubscription } from "./useSubscription";
function useFeature(featureSlug) {
  const { plan, isLoading } = useSubscription();
  if (isLoading || !plan) {
    return false;
  }
  if (plan.features.includes("*")) {
    return true;
  }
  return plan.features.includes(featureSlug);
}
export {
  useFeature
};
