import type { ComponentProps } from 'react';
import { Slot } from 'radix-ui';
import { cn } from '../../lib/cn';
/** Sticky bottom navigation on phones. Children are `MobileTab`s. */
export function MobileTabBar({ className, ...props }: ComponentProps<'nav'>) {
return (
);
}
export interface MobileTabProps extends ComponentProps<'a'> {
active?: boolean;
asChild?: boolean;
}
/** Icon over a label. */
export function MobileTab({ active, asChild, className, ...props }: MobileTabProps) {
const Comp = asChild ? Slot.Root : 'a';
return (
);
}
/** Sticky glass header on phones: logo (or a back button and title), then `MobileHeaderActions`. */
export function MobileHeader({ className, ...props }: ComponentProps<'header'>) {
return (
);
}
export function MobileHeaderActions({ className, ...props }: ComponentProps<'div'>) {
return
;
}
export interface MobileHeaderButtonProps extends ComponentProps<'button'> {
asChild?: boolean;
}
/** 44px touch target for icons or the profile avatar. Holds an `IndicatorDot`. Give it an `aria-label`. */
export function MobileHeaderButton({ asChild, className, ...props }: MobileHeaderButtonProps) {
const Comp = asChild ? Slot.Root : 'button';
return (
);
}