Files
explore/toolkit/components/AdaptiveTabs/utils.ts
T
tom goriunovandGitHub cb42262b5e Update UI toolkit (#2741)
* add more form fields and fix link props

* extend select component to render custom item and add lg size to switch

* fix build

* fix button border radius

* fix ts
2025-06-04 14:30:49 +02:00

18 lines
363 B
TypeScript

import type { TabItem, TabItemMenu } from './types';
import { middot } from '../../utils/htmlEntities';
export const menuButton: TabItemMenu = {
id: 'menu',
title: `${ middot }${ middot }${ middot }`,
component: null,
};
export const getTabValue = (tab: TabItem): string => {
if (Array.isArray(tab.id)) {
return tab.id[0];
}
return tab.id;
};