mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-24 17:44:50 +03:00
32 lines
745 B
JavaScript
32 lines
745 B
JavaScript
import * as React from "react";
|
|
import * as Constants from "~/common/constants";
|
|
import * as SVG from "~/components/system/svg";
|
|
|
|
import { css } from "@emotion/react";
|
|
|
|
const STYLES_BUTTON = css`
|
|
background-color: ${Constants.system.gray};
|
|
color: ${Constants.system.pitchBlack};
|
|
display: inline-flex;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 36px;
|
|
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;
|
|
|
|
:hover {
|
|
color: ${Constants.system.white};
|
|
background-color: ${Constants.system.brand};
|
|
}
|
|
`;
|
|
|
|
export default (props) => {
|
|
return <span css={STYLES_BUTTON} {...props} />;
|
|
};
|