// utils import { FunctionComponent } from "react"; import { IBottomNav } from "./props"; import cn from "classnames"; // components import Icon from "@/components/basic/Icon"; // styles import "./styles.scss"; // component modifiers import { applyMargin } from "@/utils/componentModifiers/margin"; const BottomNav: FunctionComponent = ({ leftButtons, rightButtons, onButtonClick, activeButtonId, children, m, }) => { return (
{leftButtons && leftButtons.length > 0 && (
{leftButtons?.map((button) => ( ))}
)} {children} {rightButtons && rightButtons.length > 0 && (
{rightButtons?.map((button) => ( ))}
)}
); }; export default BottomNav;