import { Page } from '@wix/design-system'; import React, { useState } from 'react'; import { observer } from 'mobx-react-lite'; import { useSettingsPageChild } from '../../hooks'; import { SettingsPageProps } from './SettingsPage'; import { FieldValues } from 'react-hook-form'; export interface SettingsPagePlainProps extends SettingsPageProps {} function _SettingsPagePlain({ state, children, ...rest }: SettingsPagePlainProps) { const [scrollableRef, setScrollableRef] = useState(null); const childrenArr = useSettingsPageChild(children, scrollableRef); return ( {childrenArr} ); } export const SettingsPagePlain = observer(_SettingsPagePlain);