import React, { DetailedHTMLProps, HTMLAttributes, ReactNode } from "react"; import Stack from "./Stack"; import Typography from "./Typography"; export interface CustomNavbarProps { description?: string; extra?: ReactNode; heading?: string; } export interface NavbarProps extends DetailedHTMLProps, HTMLElement>, CustomNavbarProps {} export default function Navbar({ extra, heading, description }: NavbarProps) { return ( {heading || description ? ( {heading && ( {heading} )} {description && ( {description} )} ) : ( )} {extra} ); }