aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/InlineCode.tsx
blob: c51f924a565c4f88e5be30f06348f33b0a2f0b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';
import { makeStyles } from '@material-ui/core';

const useStyles = makeStyles(theme => ({
  root: {
    background: theme.palette.background.default,
    borderRadius: theme.spacing(0.5),
    padding: theme.spacing(0.5),
    fontFamily: 'Monospace',
  },
}));

const InlineCode: React.FC = ({ children }) => {
  const classes = useStyles();
  return <span className={classes.root}>{children}</span>;
};

export default InlineCode;