aboutsummaryrefslogtreecommitdiff
path: root/components/Code/index.tsx
blob: 23e7a8bcc99cccc7b7263a19d416f0cbb74f0186 (plain)
1
2
3
4
5
6
7
8
9
10
import React, { FC, CSSProperties } from 'react';

interface CodeProps extends React.HTMLProps<HTMLSpanElement> {
    style?: CSSProperties;
}
const Code: FC<CodeProps> = ({ children, style }) => {
    return <code className='md-codespan' style={style}>{children}</code>;
};

export default Code;