import { AppBar, Box, Button, badgeClasses } from '@mui/material'; import { buttonClasses } from '@mui/material/Button'; import { alpha, styled } from '@mui/material/styles'; import { Tabs } from '../Tabs'; export const HeaderAppBar = styled(AppBar)(({ theme }) => ({ backgroundColor: 'transparent', color: theme.palette.text.primary, flexDirection: 'row', alignItems: 'center', position: 'relative', minHeight: 40, padding: theme.spacing(0, 3, 0, 3), ':first-of-type': { paddingTop: theme.spacing(1.5), paddingBottom: theme.spacing(0.5), }, })); export const Container = styled(Box, { shouldForwardProp: (prop) => prop !== 'sticky', })<{ sticky?: boolean }>(({ theme, sticky }) => ({ backgroundColor: 'transparent', backdropFilter: 'blur(12px)', position: sticky ? 'sticky' : 'relative', top: 0, zIndex: 1200, })); export const WalletButton = styled(Button)(({ theme }) => ({ color: theme.palette.text.primary, // backgroundColor: 'transparent', padding: theme.spacing(1, 1.5), width: '100%', maxHeight: 40, fontSize: '0.875rem', fontWeight: 600, '&:hover': { backgroundColor: theme.palette.mode === 'light' ? alpha(theme.palette.common.black, 0.04) : alpha(theme.palette.common.white, 0.08), }, [`.${buttonClasses.endIcon} > *:nth-of-type(1)`]: { fontSize: '24px', }, [`.${buttonClasses.startIcon} > *:nth-of-type(1)`]: { fontSize: '24px', }, [`&:hover .${badgeClasses.badge} > div`]: { borderColor: theme.palette.mode === 'light' ? alpha(theme.palette.common.black, 0.04) : alpha(theme.palette.common.white, 0.08), }, })); export const DrawerWalletContainer = styled(Box)(({ theme }) => ({ width: '100%', display: 'flex', justifyContent: 'space-between', // '& button:first-of-type': { // marginLeft: theme.spacing(-1), // }, // '& button:last-of-type': { // marginRight: theme.spacing(-1.25), // }, })); export const HeaderControlsContainer = styled(Box)(({ theme }) => ({ display: 'flex', gap: theme.spacing(0.5), // '& button:last-of-type': { // marginRight: theme.spacing(-1.25), // }, })); export const SplitTabs = styled(Tabs)(({ theme }) => ({ backgroundColor: theme.palette.mode === 'dark' ? theme.palette.background.paper : alpha(theme.palette.common.black, 0.04), }));