import type { BottomNavigationProps } from './bottomnavigation' import { classNames } from '../../utils/classNames' import styles from './bottomnavigation.module.scss' export type Props = BottomNavigationProps type ElementType = BottomNavigationProps['items'][0] & { className: string dangerouslySetInnerHTML: { __html: string } } const BottomNavigation = ({ items, separated, floating, maxWidth, className }: Props) => { const classes = classNames([ styles.nav, separated && styles.separated, maxWidth && styles.bordered, floating && styles.floating, className ]) const styleVariable = maxWidth ? { '--w-bottom-navigation-max-width': maxWidth } as React.CSSProperties : undefined const Element = ({ href, ...rest }: ElementType) => href ? :
return ( ) } export default BottomNavigation