mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-20 17:48:05 +00:00
28 lines
534 B
TypeScript
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;
|