import clsx from "clsx";
import { registerComponent } from "../../registries/components.js";
import { useActiveTab, useTabsUid } from "./hooks/tabControl.js";
export interface TabPanelProps {
className?: string;
/**
* Tab panel index
* _Can be **0** or **1** indexed_
*/
value: number;
}
export function TabPanel({ value, className, children }: React.PropsWithChildren) {
const tabSelected = useActiveTab();
const uid = useTabsUid();
const isActive = tabSelected === value;
return (
{children}
);
}
registerComponent("TabPanel", TabPanel);