/** * WordPress dependencies */ import { Navigator, __experimentalItem as Item, FlexItem, __experimentalHStack as HStack, } from '@wordpress/components'; /** * Internal dependencies */ import { IconWithCurrentColor } from './icon-with-current-color'; interface GenericNavigationButtonProps { icon?: any; children: React.ReactNode; [ key: string ]: any; } function GenericNavigationButton( { icon, children, ...props }: GenericNavigationButtonProps ) { return ( { icon && ( { children } ) } { ! icon && children } ); } interface NavigationButtonProps { path: string; icon?: any; children: React.ReactNode; [ key: string ]: any; } export function NavigationButtonAsItem( props: NavigationButtonProps ) { return ; } export function NavigationBackButtonAsItem( props: NavigationButtonProps ) { return ; }