Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

Header.tsx

21 lines539 Bytes

1import { AppBar, Box, Toolbar, css, styled } from '@mui/material'
2import { CustomLink } from './CustomLink'
3​
4const StyledCustomLink = styled(CustomLink)(
5 ({ theme }) => css`
6 color: ${theme.palette.common.white};
7 `,
8)
9​
10export function Header() {
11 return (
12 <Box sx={{ flexGrow: 1 }}>
13 <AppBar position="static">
14 <Toolbar sx={{ gap: 2 }}>
15 <StyledCustomLink to="/">Index</StyledCustomLink>
16 <StyledCustomLink to="/about">About</StyledCustomLink>
17 </Toolbar>
18 </AppBar>
19 </Box>
20 )