blob: 00e625d66466d3d6f01713c6582841ce56d7007c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import * as React from 'react';
import styled from 'styled-components';
import { colors } from '../variables';
interface InlineCodeProps {
isAlt?: boolean;
children: React.ReactNode;
}
const InlineCode = styled(({ isAlt, children, ...props }: InlineCodeProps) => <code {...props}>{children}</code>)`
background-color: ${props => (props.isAlt ? '#E5E8E9' : colors.blueGray)};
padding: 0.3125rem;
`;
export { InlineCode };
|