mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-08 19:21:32 -07:00
feat(config): add configuration window (#70)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import type { ConfigSettingsField } from '../types/settings';
|
||||
|
||||
export interface FieldTitleBadge {
|
||||
className: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
export function getFieldTitleBadges(field: ConfigSettingsField): FieldTitleBadge[] {
|
||||
return [
|
||||
{
|
||||
className: `restart-chip ${field.restartBehavior}`,
|
||||
text: field.restartBehavior === 'hot-reload' ? 'Live' : 'Restart',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user