Rev 632 | Rev 754 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React from 'react'
import styled from 'styled-components'
const StyledButton = styled.button`
&:hover .reactions {
display: flex;
}
`
const InputOption = ({
icon: Icon = null,
iconColor = 'var(--icons-color)',
className = '',
label = '',
children = null,
...rest
}) => {
return (
<StyledButton className={className} {...rest}>
{Icon && <Icon style={{ color: iconColor }} />}
{label}
{children}
</StyledButton>
)
}
export default InputOption