mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 12:03:17 +00:00
17 lines
359 B
TypeScript
17 lines
359 B
TypeScript
import { Tab } from "#/ui/Tab";
|
|
|
|
export type Item = {
|
|
text: string;
|
|
slug?: string;
|
|
};
|
|
|
|
export const TabGroup = ({ path, items }: { path: string; items: Item[] }) => {
|
|
return (
|
|
<div className="-mt-2 flex flex-wrap items-center">
|
|
{items.map((item) => (
|
|
<Tab key={path + item.slug} item={item} path={path} />
|
|
))}
|
|
</div>
|
|
);
|
|
};
|