forked from extern/bruno
16 lines
397 B
JavaScript
16 lines
397 B
JavaScript
import React from 'react';
|
|
import CodeEditor from 'components/CodeEditor';
|
|
import StyledWrapper from './StyledWrapper';
|
|
|
|
const QueryResult = ({value, width}) => {
|
|
return (
|
|
<StyledWrapper className="px-3 w-full" style={{maxWidth: width}}>
|
|
<div className="h-full">
|
|
<CodeEditor value={value || ''} readOnly/>
|
|
</div>
|
|
</StyledWrapper>
|
|
);
|
|
};
|
|
|
|
export default QueryResult;
|