UNPKG

@rsksmart/rif-ui

Version:

Exposes common components to be re used in RIF projects

22 lines (17 loc) 501 B
import { NavLinkProps } from 'react-router-dom' import { HTMLAttributes, ReactElement } from 'react' export interface HeaderProps { hreflogo: string itemsStart: NavItemProps[] itemsEnd?: ActionHeaderItemProps[] login: React.ElementType } export type NavItemProps = NavLinkProps & NavHeaderItemProps export type NavHeaderItemProps = { icon?: ReactElement title: string } export type ActionHeaderItemProps = { icon: ReactElement key?: string } & Partial<HTMLAttributes<HTMLElement>>