"use client"; import { createContext, useContext, ReactNode } from "react"; import { CurrencyData } from "@/lib/currency"; const CurrencyContext = createContext(undefined); export function CurrencyProvider({ currency, children }: { currency: CurrencyData; children: ReactNode; }) { return ( {children} ); } export function useCurrency() { const context = useContext(CurrencyContext); if (context === undefined) { // Fallback to USD if not provided return { symbol: "$", code: "USD", name: "US Dollars", monthlyPrice: 12, annualPrice: 9.6, }; } return context; }