mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 18:58:35 +08:00
16 lines
437 B
TypeScript
16 lines
437 B
TypeScript
export const INSTANCE_DETAIL_TAB_KEYS = [
|
|
'overview',
|
|
'instances',
|
|
'releases',
|
|
'access',
|
|
'api-tokens',
|
|
] as const
|
|
|
|
export type InstanceDetailTabKey = (typeof INSTANCE_DETAIL_TAB_KEYS)[number]
|
|
|
|
const INSTANCE_DETAIL_TAB_KEY_SET = new Set<string>(INSTANCE_DETAIL_TAB_KEYS)
|
|
|
|
export function isInstanceDetailTabKey(value?: string): value is InstanceDetailTabKey {
|
|
return value != null && INSTANCE_DETAIL_TAB_KEY_SET.has(value)
|
|
}
|