import * as React from 'react'; import classnames from 'classnames'; import { Heading } from './heading'; import { Text } from './text'; import * as ToggleGroup from '@radix-ui/react-toggle-group'; type TopbarElement = React.ElementRef<'header'>; type RootProps = React.ComponentPropsWithoutRef<'header'>; interface TopbarProps extends RootProps { title: string; viewMode?: string; setViewMode?: (viewMode: string) => void; } export const Topbar = React.forwardRef>( ({ className, title, viewMode, setViewMode, ...props }, forwardedRef) => { return (
All emails {title}
{setViewMode && ( { if (!value) { return setViewMode('desktop'); } setViewMode(value); }} > Desktop Source )}
); }, ); Topbar.displayName = 'Topbar';