({
children,
canGoBack,
onLogoClick,
}: RecruiterLayoutProps)
| 19 | }; |
| 20 | |
| 21 | export const RecruiterLayout = ({ |
| 22 | children, |
| 23 | canGoBack, |
| 24 | onLogoClick, |
| 25 | }: RecruiterLayoutProps): ReactElement | null => { |
| 26 | const { autoDismissNotifications } = useContext(SettingsContext); |
| 27 | const { isPageReady } = useRecruiterLayoutReady(); |
| 28 | |
| 29 | if (!isPageReady) { |
| 30 | return null; |
| 31 | } |
| 32 | |
| 33 | return ( |
| 34 | <div className="antialiased"> |
| 35 | <InAppNotificationElement /> |
| 36 | <PromptElement /> |
| 37 | <Toast autoDismissNotifications={autoDismissNotifications} /> |
| 38 | <RecruiterLayoutHeader canGoBack={canGoBack} onLogoClick={onLogoClick} /> |
| 39 | <NoSidebarLayout |
| 40 | hideBackButton |
| 41 | className="flex flex-col gap-5 laptop:gap-10" |
| 42 | > |
| 43 | <ErrorBoundary |
| 44 | feature="recruiter-self-serve" |
| 45 | fallback={<RecruiterErrorFallback />} |
| 46 | > |
| 47 | {children} |
| 48 | </ErrorBoundary> |
| 49 | </NoSidebarLayout> |
| 50 | </div> |
| 51 | ); |
| 52 | }; |
nothing calls this directly
no test coverage detected