@lunit/oui
Version:
Lunit Oncology UI components
14 lines (13 loc) • 435 B
TypeScript
import type { TabConfig } from './TabbedPanel.types';
/**
*
* @param defaultTab string | undefined
* @param tabs TabConfig[]
* @returns string
* @description returns the initial value for useState, based on defaultTab.
* If default tab is provided and matched, returns that,
* else, returns first tab.
*
*/
declare function findDefaultTab(defaultTab: string | undefined, tabs: TabConfig[]): string;
export { findDefaultTab };