'use client' // biome-ignore lint/style/useImportType: import React, { useRef, useImperativeHandle, PropsWithChildren } from 'react'; import { JBOptionWebComponent } from 'jb-select'; import './module-declaration.js'; export function JBOption (props: JBOptionProps){ const element = useRef>(null); // value is inside ...rest const {children, ref,className, ...rest} = props; useImperativeHandle( ref, () => (element.current??undefined), [element], ); return ( {children} ); }; type Props = { value:TValue, ref?: React.ForwardedRef | undefined> } export type JBOptionProps = PropsWithChildren> JBOption.displayName = 'JBOption';