"use client" import { createContext, useContext } from "react" type CreditNoteContextValue = { id: string label: string } const CreditNoteContext = createContext(null) export function CreditNoteProvider({ creditNote, children, }: { creditNote: CreditNoteContextValue children: React.ReactNode }) { return ( {children} ) } export function useCreditNote() { return useContext(CreditNoteContext) }