Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2152 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2152 Rev 3719
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react';
2
import { styled } from '@mui/material'
2
import { styled } from '@mui/material';
3
 
3
 
4
const StyledButton = styled('button')`
4
const StyledButton = styled('button')`
5
  &:hover .reactions {
5
  &:hover .reactions {
6
    transform: scale(1);
6
    transform: scale(1);
7
  }
7
  }
8
`
8
`;
9
 
9
 
10
const InputOption = ({
10
const InputOption = ({
11
  icon: Icon = null,
11
  icon: Icon = null,
12
  iconColor = 'var(--icons-color)',
12
  iconColor = 'var(--icons-color)',
13
  className = '',
13
  className = '',
14
  label = '',
14
  label = '',
15
  children = null,
15
  children = null,
16
  ...rest
16
  ...rest
17
}) => {
17
}) => {
18
  return (
18
  return (
19
    <StyledButton className={className} {...rest}>
19
    <StyledButton className={className} {...rest}>
20
      {Icon ? <Icon style={{ color: iconColor }} /> : null}
20
      {Icon ? <Icon style={{ color: iconColor }} /> : null}
21
      {label}
21
      {label}
22
      {children}
22
      {children}
23
    </StyledButton>
23
    </StyledButton>
24
  )
24
  );
25
}
25
};
26
 
26
 
27
export default InputOption
27
export default InputOption;