loading: boolean
picture: string
accountOptions: Value[]
+ showNewConsoleToggle: boolean
+ isNewConsoleDefault: boolean
+ onNewConsoleDefaultChange: (value: boolean) => void
}
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
const timezoneOffset = new Date().getTimezoneOffset() / -60
-export function PageUserGeneral({ onSubmit, loading, picture, accountOptions }: PageUserGeneralProps) {
+export function PageUserGeneral({
+ onSubmit,
+ loading,
+ picture,
+ accountOptions,
+ showNewConsoleToggle,
+ isNewConsoleDefault,
+ onNewConsoleDefaultChange,
+}: PageUserGeneralProps) {
const { control, formState, watch } = useFormContext()
return (
@@ -112,6 +123,17 @@ export function PageUserGeneral({ onSubmit, loading, picture, accountOptions }:
Timezone used to display timestamp within the interface
+ {showNewConsoleToggle && (
+
+ )}