( page: ReactNode, pageProps: Record<string, unknown>, layoutProps: MainLayoutProps, )
| 9 | export default FeedLayoutProvider; |
| 10 | |
| 11 | export const getLayout = ( |
| 12 | page: ReactNode, |
| 13 | pageProps: Record<string, unknown>, |
| 14 | layoutProps: MainLayoutProps, |
| 15 | ): ReactNode => { |
| 16 | // @NOTE see https://dailydotdev.atlassian.net/l/cp/dK9h1zoM |
| 17 | // eslint-disable-next-line react-hooks/rules-of-hooks |
| 18 | const router = useRouter(); |
| 19 | return getFooterNavBarLayout( |
| 20 | <MainLayout {...layoutProps} activePage={router?.asPath}> |
| 21 | <FeedLayoutProvider>{page}</FeedLayoutProvider> |
| 22 | </MainLayout>, |
| 23 | ); |
| 24 | }; |
| 25 | |
| 26 | export const mainFeedLayoutProps: MainLayoutProps = { |
| 27 | mainPage: true, |
no test coverage detected