"use client" import { createContext, useContext } from "react" type InvoiceContextValue = { id: string label: string } const InvoiceContext = createContext(null) export function InvoiceProvider({ invoice, children, }: { invoice: InvoiceContextValue children: React.ReactNode }) { return ( {children} ) } export function useInvoice() { return useContext(InvoiceContext) }