2023-05-31 17:56:58 +02:00
|
|
|
import { Difficulty } from 'shared/components/designs/difficulty.mjs'
|
|
|
|
|
|
|
|
const ListValue = ({ current, t, config, changed }) =>
|
|
|
|
changed
|
|
|
|
? t(`ui-settings:${config.valueTitles[current]}`)
|
|
|
|
: t(`ui-settings:${config.valueTitles[config.dflt]}`)
|
|
|
|
|
|
|
|
export const RendererSettingValue = ListValue
|
2023-06-01 09:42:48 +02:00
|
|
|
export const XRaySettingValue = ListValue
|
2023-06-01 09:06:11 +02:00
|
|
|
export const ControlSettingValue = ({ control }) => <Difficulty score={control} color="primary" />
|