| 123456789101112131415161718192021222324252627 |
- import { Box } from "@mui/system";
- import styled, { css } from "styled-components";
- import selectedTheme from "../../../themes";
-
- export const BlockButtonContainer = styled(Box)`
- display: inline;
- cursor: pointer;
- `;
- export const BlockButtonIcon = styled(Box)`
- font-size: 16px;
- font-family: "Source Code Pro";
- ${(props) =>
- props.format === "bold"
- ? `font-weight: bold;`
- : props.format === "italic"
- ? "font-style: italic;"
- : props.format === "underline"
- ? `text-decoration: underline;`
- : ""}
- color: ${selectedTheme.colors.primaryGrayText};
- line-height: 20px;
- ${(props) =>
- props.active &&
- css`
- color: ${selectedTheme.colors.primaryText};
- `}
- `;
|