1
0
Fork 0

wip(shared): Work on workbench views

This commit is contained in:
joostdecock 2023-05-31 17:56:58 +02:00
parent cab7f5d2c5
commit c53ff25053
25 changed files with 386 additions and 96 deletions

View file

@ -0,0 +1,10 @@
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
export const XRaysValue = ListValue
export const ControlSettingValue = ({ control }) => <Difficulty score={control} />