import { ComponentProps, ReactNode, forwardRef } from 'react' import { Button, cn } from 'ui' export const NavigationIconButton = forwardRef< HTMLButtonElement, Omit< ComponentProps, // omit other icon props to avoid confusion // using `icon` instead as there is only 1 use case for this component 'iconRight' | 'iconLeft' > & { rightText?: ReactNode } >(({ icon, rightText, ...props }, ref) => { return ( ) }) NavigationIconButton.displayName = 'NavigationIconButton'