'use client'

import type { ReactNode } from 'react'
import { type UseNumberInputContext, useNumberInputContext } from './use-number-input-context.ts'

export interface NumberInputContextProps {
  children: (context: UseNumberInputContext) => ReactNode
}

export const NumberInputContext = (props: NumberInputContextProps) => props.children(useNumberInputContext())
