2023-05-15 18:23:26 +02:00
|
|
|
import { Fab } from '@mui/material';
|
|
|
|
|
import { styled } from '@mui/system';
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_FAB_STYLE = {
|
|
|
|
|
position: 'fixed',
|
|
|
|
|
height: '48px',
|
2023-05-15 18:36:16 +02:00
|
|
|
right: '48px',
|
|
|
|
|
bottom: '28px',
|
2023-05-15 18:23:26 +02:00
|
|
|
} as const;
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_FULL_FAB_HEIGHT = `calc(${DEFAULT_FAB_STYLE.bottom} + ${DEFAULT_FAB_STYLE.height})`;
|
|
|
|
|
|
|
|
|
|
const StyledFab = styled(Fab)({
|
|
|
|
|
...DEFAULT_FAB_STYLE,
|
|
|
|
|
}) as typeof Fab;
|
|
|
|
|
|
|
|
|
|
export default StyledFab;
|