"use client"; import type { ComponentProps } from "react"; import { ListBoxItem as BaseListBoxItem } from "react-aria-components"; import { usePrefetch } from "../../use-prefetch.js"; export { ListBox, ListBoxSection } from "react-aria-components"; type ListBoxItemProps = ComponentProps< typeof BaseListBoxItem > & { prefetch?: Parameters[0]["prefetch"]; }; export const ListBoxItem = ({ ref, prefetch, onHoverStart, ...props }: ListBoxItemProps) => { const prefetchProps = usePrefetch({ href: props.href, prefetch, onHoverStart, ref, }); return ; };