'use client'

import type { ReactNode } from 'react'
import { type UseClipboardContext, useClipboardContext } from './use-clipboard-context.ts'

export interface ClipboardContextProps {
  children: (context: UseClipboardContext) => ReactNode
}

export const ClipboardContext = (props: ClipboardContextProps) => props.children(useClipboardContext())
