{pref.displayName} |
{makeContentCell(PreferenceContext.Account, globalServer, inherit = pref.defaultValue)} |
{makeContentCell(PreferenceContext.Device, globalLocal, inherit = globalServer ?? inherit)} |
{makeContentCell(PreferenceContext.RoomAccount, roomServer, inherit = globalLocal ?? inherit)} |
{makeContentCell(PreferenceContext.RoomDevice, roomLocal, inherit = roomServer ?? inherit)} |
}
interface SettingsViewProps {
room: RoomStateStore
}
const CustomCSSInput = ({ setPref, room }: { setPref: SetPrefFunc, room: RoomStateStore }) => {
const client = use(ClientContext)!
const [context, setContext] = useState(PreferenceContext.Account)
const [text, setText] = useState("")
const onChangeContext = useCallback((evt: React.ChangeEvent