/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import { forwardRef, type ComponentType, useEffect, useRef } from 'react'; import type { RequiredAccessibilityProps } from '../types'; import { useContext } from './context'; import { composeEventHandlers, composeRefs } from '@crossed/core'; export const createSelectTrigger =
(StyledRoot: ComponentType
) =>
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
forwardRef