Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
overflow: hidden;
`;
const StyledEditor = styled(ReactLive.LiveEditor)`
&[class*='language-'] {
margin: 0;
border-radius: 0;
box-shadow: none;
}
`;
const StyledPreview = styled(ReactLive.LivePreview)`
overflow: auto;
`;
const StyledError = styled(ReactLive.LiveError)`
border-radius: 2px;
overflow: auto;
`;
export class LiveEditor extends React.Component {
constructor() {
super();
this.state = { editor: true, preview: true };
}
render() {
const { code, language, noInline } = this.props;
const { editor, preview } = this.state;
return (