2023-06-10 20:33:34 +02:00
|
|
|
export const loadSettingsConfig = (settings, view) => {
|
2023-06-02 12:13:49 -05:00
|
|
|
const uiSettings = {
|
|
|
|
control: {
|
|
|
|
control: 1, // Show when control > 0
|
|
|
|
emoji: '🖥️',
|
|
|
|
list: [1, 2, 3, 4, 5],
|
|
|
|
choiceTitles: {},
|
2023-05-31 17:56:58 +02:00
|
|
|
},
|
2023-06-02 12:13:49 -05:00
|
|
|
renderer: {
|
|
|
|
control: 4, // Show when control > 3
|
|
|
|
list: ['react', 'svg'],
|
|
|
|
choiceTitles: {
|
|
|
|
react: 'renderWithReact',
|
|
|
|
svg: 'renderWithCore',
|
|
|
|
},
|
|
|
|
valueTitles: {
|
|
|
|
react: 'React',
|
|
|
|
svg: 'SVG',
|
|
|
|
},
|
|
|
|
dflt: 'react',
|
|
|
|
emoji: '🚀',
|
2023-05-31 17:56:58 +02:00
|
|
|
},
|
2023-06-02 12:13:49 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
uiSettings.control.list.forEach(
|
|
|
|
(i) => (uiSettings.control.choiceTitles[i] = 'account:control' + i)
|
|
|
|
)
|
|
|
|
return uiSettings
|
|
|
|
}
|