d6cd8b78f1
* feat: decouple package deps and introduce yarn workspaces * update root directory * fix * fix scripts * fix lint * update path in scripts * remove yarn.lock files from packages * ignore workspace * dummy * dummy * remove comment check * revert workflow changes * ignore ws when installing gh actions * remove log * update path * fix * fix typo
19 lines
406 B
TypeScript
19 lines
406 B
TypeScript
import * as RadixTabs from "@radix-ui/react-tabs";
|
|
import { SidebarTabName } from "../../types";
|
|
|
|
export const SidebarTab = ({
|
|
tab,
|
|
children,
|
|
...rest
|
|
}: {
|
|
tab: SidebarTabName;
|
|
children: React.ReactNode;
|
|
} & React.HTMLAttributes<HTMLDivElement>) => {
|
|
return (
|
|
<RadixTabs.Content {...rest} value={tab}>
|
|
{children}
|
|
</RadixTabs.Content>
|
|
);
|
|
};
|
|
SidebarTab.displayName = "SidebarTab";
|