import React, { useRef, type HTMLAttributes, type ReactNode } from 'react'
import classnames from 'classnames'
import { useFocusable, type FocusableOptions } from 'react-aria'
import styles from './Focusable.module.css'
export type FocusableProps = {
children: ReactNode
} & FocusableOptions &
HTMLAttributes
export const Focusable = ({ children, className, ...props }: FocusableProps): JSX.Element => {
const ref = useRef(null)
const { focusableProps } = useFocusable(props, ref)
return (
{children}
)
}