MCPcopy Create free account
hub / github.com/dailydotdev/apps / RecruiterLayout

Function RecruiterLayout

packages/shared/src/components/RecruiterLayout.tsx:21–52  ·  view source on GitHub ↗
({
  children,
  canGoBack,
  onLogoClick,
}: RecruiterLayoutProps)

Source from the content-addressed store, hash-verified

19};
20
21export 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};

Callers

nothing calls this directly

Calls 1

useRecruiterLayoutReadyFunction · 0.90

Tested by

no test coverage detected