import type { ComponentProps } from 'react'; import { slottableComponent } from '../HOC/slottableComponent'; type Props = Omit, 'href'> & { to: string }; export const RouterLink = slottableComponent('RouterLink', (props: Props) => { const { to, children, ...rest } = props; return ( {children} ); });