diff --git a/src/components/CentralContainer/Sidebar/SidebarTabs/SettingsTabPanel/SettingsFormField.tsx b/src/components/CentralContainer/Sidebar/SidebarTabs/SettingsTabPanel/SettingsFormField.tsx new file mode 100644 index 000000000..3384a69e8 --- /dev/null +++ b/src/components/CentralContainer/Sidebar/SidebarTabs/SettingsTabPanel/SettingsFormField.tsx @@ -0,0 +1,58 @@ +import React from "react"; + +import { + FormControl, + FormHelperText, + FormLabel, + Input, + Textarea, +} from "@mui/joy"; + + +interface SettingsFormFieldProps { + configKey: string; + helperText: string | React.ReactNode; + initialValue: string | number; + label: string; + type: string; +} + +/** + * Displays a form field for user input of configuration values. + * + * @param props + * @param props.configKey + * @param props.helperText + * @param props.initialValue + * @param props.label + * @param props.type + * @return + */ +const SettingsFormField = ({ + configKey, + helperText, + initialValue, + label, + type, +}: SettingsFormFieldProps) => ( + + + {label} + + {"number" === type ? + : +