({ children }: AppShellProps)
| 8 | } |
| 9 | |
| 10 | export const AppShell = ({ children }: AppShellProps) => { |
| 11 | const isNotHome = useLocation().pathname !== '/'; |
| 12 | |
| 13 | return ( |
| 14 | <> |
| 15 | <a className={classes.skipLink} href="#main-content"> |
| 16 | Skip to content |
| 17 | </a> |
| 18 | <Header /> |
| 19 | <main id="main-content" tabIndex={-1}> |
| 20 | {children} |
| 21 | </main> |
| 22 | {isNotHome && <Footer style={{ marginTop: 'auto' }} />} |
| 23 | </> |
| 24 | ); |
| 25 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected