mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* 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
18 lines
363 B
TypeScript
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;
|
|
};
|