mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
23 lines
425 B
TypeScript
23 lines
425 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
const IconButton = styled.button(({ theme }) => ({
|
|
cursor: 'pointer',
|
|
height: '2rem',
|
|
width: '2rem',
|
|
fontSize: '1rem',
|
|
color: theme.colors.font,
|
|
backgroundColor: theme.colors.grey,
|
|
borderRadius: '50%',
|
|
border: 0,
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
|
|
'&:disabled': {
|
|
cursor: 'not-allowed',
|
|
opacity: 0.15,
|
|
},
|
|
}));
|
|
|
|
export default IconButton;
|