import React from 'react'; import { Link } from 'react-router'; import { LockClosedIcon } from '@heroicons/react/24/outline'; import { useSubscription } from '../../hooks/useSubscription'; interface FeatureGateProps { feature: string; children: React.ReactNode; } export default function FeatureGate({ feature, children }: FeatureGateProps) { const { hasFeature, hasPlan } = useSubscription(); if (hasFeature(feature)) return <>{children}>; return (