1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-20 17:48:05 +00:00
thatmattlove-hyperglass/docs/src/components/MiniNote.tsx
2021-05-30 15:45:19 -07:00

28 lines
534 B
TypeScript

import * as React from "react";
type MiniNodeProps = {
newLine: boolean;
};
const MiniNote = (
props: React.PropsWithChildren<MiniNodeProps>
): JSX.Element => {
const { newLine, children } = props;
return (
<>
{newLine && <br />}
<span
style={{
fontSize: "var(--ifm-font-size-sm)",
color: "var(--ifm-blockquote-color)",
display: "inline-block",
fontStyle: "italic",
}}
>
{children}
</span>
</>
);
};
export default MiniNote;