import * as React from 'react'; import clsx from 'clsx'; import { Span } from '@tesseract-design/viewfinder-base'; export interface TopBarProps extends Omit, 'span'> { span?: Span, brand?: React.ReactNode, menuLink?: React.ReactNode, userLink?: React.ReactNode, } export const TopBar = React.forwardRef(({ span = 'normal', brand, menuLink, userLink, children, ...etcProps }, ref) => { return (
{ Boolean(brand as unknown) && (
{brand}
) }
{children}
{ Boolean(menuLink as unknown) && (
{menuLink}
) } { Boolean(userLink as unknown) && (
{userLink}
) }
) }) TopBar.displayName = 'TopBar';