mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-03 12:55:41 -05:00
13 lines
463 B
TypeScript
13 lines
463 B
TypeScript
import { NavigationLabel, type SubNavigationItemState } from '@/sdk';
|
|
import type { NavItem } from '@/sdk/theme';
|
|
|
|
/** Classic's tabs name the panel's own pages in text; extension screens keep their icons. */
|
|
export const tabLabel = (item: NavItem, state: SubNavigationItemState) => (
|
|
<NavigationLabel
|
|
label={item.label}
|
|
group={item.group}
|
|
icon={item.extensionId === undefined ? null : item.icon}
|
|
badge={state.badge}
|
|
/>
|
|
);
|