2020-08-09 11:08:46 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Constants from "~/common/constants";
|
|
|
|
|
2020-11-30 08:24:22 +03:00
|
|
|
import { css } from "@emotion/react";
|
2020-08-09 11:08:46 +03:00
|
|
|
|
|
|
|
const STYLES_BUTTON = css`
|
2020-09-02 04:09:39 +03:00
|
|
|
background-color: ${Constants.system.white};
|
2020-08-09 11:08:46 +03:00
|
|
|
color: ${Constants.system.pitchBlack};
|
|
|
|
display: inline-flex;
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
2020-09-05 04:40:23 +03:00
|
|
|
border-radius: 4px;
|
2020-08-09 11:08:46 +03:00
|
|
|
background-size: cover;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
transition: 100ms ease all;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
flex-shrink: 0;
|
2020-09-02 04:09:39 +03:00
|
|
|
|
|
|
|
:hover {
|
|
|
|
color: ${Constants.system.white};
|
|
|
|
background-color: ${Constants.system.brand};
|
|
|
|
}
|
2020-08-09 11:08:46 +03:00
|
|
|
`;
|
|
|
|
|
2021-03-07 23:53:54 +03:00
|
|
|
export const SquareButtonLight = (props) => {
|
2020-08-09 11:08:46 +03:00
|
|
|
return <span css={STYLES_BUTTON} {...props} />;
|
|
|
|
};
|
2020-08-30 23:31:09 +03:00
|
|
|
|
2021-03-07 23:53:54 +03:00
|
|
|
export default SquareButtonLight;
|