"use client" import { createContext, useContext } from "react" type VendorContextValue = { id: string label: string } const VendorContext = createContext(null) export function VendorProvider({ vendor, children, }: { vendor: VendorContextValue children: React.ReactNode }) { return ( {children} ) } export function useVendor() { return useContext(VendorContext) }