import * as React from 'react';
import Typography from '@mui/material/Typography';
import { Theme } from '@mui/material/styles';
import { Link } from '@mui/docs/Link';
import ROUTES from 'docs/src/route';
import FEATURE_TOGGLE from 'docs/src/featureToggle';
const linkStyleOverrides = (theme: Theme) => ({
color: 'inherit',
textDecorationColor: 'currentColor',
'&:hover': {
color: (theme.vars || theme).palette.primary[200],
},
...theme.applyDarkStyles({
color: 'inherit',
'&:hover': {
color: (theme.vars || theme).palette.primary[200],
},
}),
});
function getSurveyMessage() {
return (
{`🚀 Influence MUI's 2025 roadmap! Participate in the latest`}
Developer Survey →
);
}
function getDefaultHiringMessage() {
return (
🚀 We're hiring a Designer, Full-stack Engineer, React Community Engineer, and
more!
Check the careers page →
);
}
export default function AppHeaderBanner() {
const showSurveyMessage = false;
const bannerMessage = showSurveyMessage ? getSurveyMessage() : getDefaultHiringMessage();
return FEATURE_TOGGLE.enable_website_banner ? (
({
color: '#fff',
p: '12px',
display: 'flex',
flexDirection: { xs: 'column', md: 'row' },
alignItems: { xs: 'start', sm: 'center' },
justifyContent: 'center',
fontSize: theme.typography.pxToRem(13),
background: `linear-gradient(-90deg, ${(theme.vars || theme).palette.primary[700]}, ${
(theme.vars || theme).palette.primary[500]
} 120%)`,
...theme.applyDarkStyles({
background: `linear-gradient(90deg, ${(theme.vars || theme).palette.primary[900]}, ${
(theme.vars || theme).palette.primary[600]
} 120%)`,
}),
}),
]}
>
{bannerMessage}
) : null;
}