import { Theme, alpha, Components } from '@mui/material/styles'; import { gray } from '../themePrimitives'; /* eslint-disable import/prefer-default-export */ export const feedbackCustomizations: Components = { MuiAlert: { styleOverrides: { root: ({ theme }) => ({ borderRadius: (theme.vars || theme).shape.borderRadius, ...theme.applyStyles('dark', { backgroundColor: alpha((theme.vars || theme).palette.background.paper, 0.6), }), }), }, }, MuiDialog: { styleOverrides: { root: ({ theme }) => ({ '& .MuiDialog-paper': { borderRadius: (theme.vars || theme).shape.borderRadius, border: '1px solid', borderColor: (theme.vars || theme).palette.divider, }, }), }, }, MuiLinearProgress: { styleOverrides: { root: ({ theme }) => ({ height: 8, borderRadius: 8, backgroundColor: gray[200], ...theme.applyStyles('dark', { backgroundColor: gray[800], }), }), }, }, };