import React, { Children, ReactNode, forwardRef } from "react";
import classNames from "classnames";
import { Box, BoxProps } from "../Box";
import { AppbarTabMarker } from "./AppbarTabMarker";
import { cn } from "./config";
type AppbarTabProps = {
children: ReactNode;
as?: any;
active?: boolean;
};
export const AppbarTabs = (props: BoxProps) => {
return (
);
};
export const AppbarTab = forwardRef(
({ children, renderAs: Component = "a", active, ...rest }, ref) => {
if (Children.count(children) > 1) {
throw new Error(
`Only one child node may be passed to Appbar.Tab, but ${Children.count(
children,
)} were passed.`,
);
}
return (
{children}
);
},
);