main
Last change
on this file was 5d6f37a, checked in by Naum Shapkarovski <naumshapkarovski@…>, 2 months ago |
add customer
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[5d6f37a] | 1 | // @mui
|
---|
| 2 | import { useTheme } from '@mui/material/styles';
|
---|
| 3 | import IconButton from '@mui/material/IconButton';
|
---|
| 4 | // theme
|
---|
| 5 | import { bgBlur } from 'src/theme/css';
|
---|
| 6 | //
|
---|
| 7 | import Iconify from '../iconify';
|
---|
| 8 |
|
---|
| 9 | // ----------------------------------------------------------------------
|
---|
| 10 |
|
---|
| 11 | type Props = {
|
---|
| 12 | onDownload?: VoidFunction;
|
---|
| 13 | };
|
---|
| 14 |
|
---|
| 15 | export default function DownloadButton({ onDownload }: Props) {
|
---|
| 16 | const theme = useTheme();
|
---|
| 17 |
|
---|
| 18 | return (
|
---|
| 19 | <IconButton
|
---|
| 20 | onClick={onDownload}
|
---|
| 21 | sx={{
|
---|
| 22 | p: 0,
|
---|
| 23 | top: 0,
|
---|
| 24 | right: 0,
|
---|
| 25 | width: 1,
|
---|
| 26 | height: 1,
|
---|
| 27 | zIndex: 9,
|
---|
| 28 | opacity: 0,
|
---|
| 29 | position: 'absolute',
|
---|
| 30 | borderRadius: 'unset',
|
---|
| 31 | justifyContent: 'center',
|
---|
| 32 | bgcolor: 'grey.800',
|
---|
| 33 | color: 'common.white',
|
---|
| 34 | transition: theme.transitions.create(['opacity']),
|
---|
| 35 |
|
---|
| 36 | '&:hover': {
|
---|
| 37 | opacity: 1,
|
---|
| 38 | ...bgBlur({
|
---|
| 39 | opacity: 0.64,
|
---|
| 40 | color: theme.palette.grey[900],
|
---|
| 41 | }),
|
---|
| 42 | },
|
---|
| 43 | }}
|
---|
| 44 | >
|
---|
| 45 | <Iconify icon="eva:arrow-circle-down-fill" width={24} />
|
---|
| 46 | </IconButton>
|
---|
| 47 | );
|
---|
| 48 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.