/** * 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 { ComponentType, forwardRef, useId } from 'react'; import { Provider } from './context'; import { RovingFocusGroupItem } from '../utils/RovingFocus'; import { ButtonGroupCollection } from './contextCollection'; export const createButtonMain = >( StyledButton: ComponentType ) => forwardRef((props, ref) => { const idDefault = useId(); const id = props.id ?? idDefault; return ( ); });