"use client" import React from "react" import { useActiveUser } from "@/hooks/useActiveUser" import { Lock, Sparkles, ArrowRight } from "lucide-react" import Link from "next/link" interface PremiumGateProps { featureKey: string; children: React.ReactNode; } export function PremiumGate({ featureKey, children }: PremiumGateProps) { const { hasAccessTo, loading, user } = useActiveUser(); if (loading || !user) { return (
You need an active plan to access this exclusive tool.