import { Page } from '@wix/design-system'; import React, { useState } from 'react'; import { observer } from 'mobx-react-lite'; import { useEntityPageChild } from '../../hooks'; import { EntityPageProps } from './EntityPage'; import { FieldValues } from 'react-hook-form'; import { useIsMobile } from '../../hooks/useIsMobile'; import { st, classes } from './EntityPagePlain.st.css.js'; export interface EntityPagePlainProps extends EntityPageProps {} function _EntityPagePlain({ state, children, ...rest }: EntityPagePlainProps) { const [scrollableRef, setScrollableRef] = useState(null); const childrenArr = useEntityPageChild(children, scrollableRef); const isMobile = useIsMobile(); return ( {childrenArr} ); } export const EntityPagePlain = observer(_EntityPagePlain);