10 lines
425 B
JavaScript
10 lines
425 B
JavaScript
|
import styles from '../styles/CodeBlock.module.css';
|
||
|
|
||
|
export default function CodeBlock (props) {
|
||
|
return (
|
||
|
<div className={styles.CodeBlock} style={props.quote ? {paddingTop: '0px', paddingLeft:'0px'} : {}}>
|
||
|
{props.quote ? (<div className={styles.Author}>{props.author} says:</div>) : null}
|
||
|
<div style={props.quote ? {paddingLeft:'10px'} : {}}>{props.children}</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|