2022-03-20 09:44:41 +01:00
|
|
|
import React from 'react';
|
|
|
|
import CodeEditor from 'components/CodeEditor';
|
2021-12-04 12:30:03 +01:00
|
|
|
import StyledWrapper from './StyledWrapper';
|
|
|
|
|
2022-03-20 09:44:41 +01:00
|
|
|
const QueryResult = ({value, width}) => {
|
2021-12-04 12:30:03 +01:00
|
|
|
return (
|
2022-01-26 16:01:49 +01:00
|
|
|
<StyledWrapper className="mt-4 px-3 w-full" style={{maxWidth: width}}>
|
2022-01-25 22:30:21 +01:00
|
|
|
<div className="h-full">
|
2022-03-20 09:44:41 +01:00
|
|
|
<CodeEditor value={value || ''} />
|
2021-12-04 12:30:03 +01:00
|
|
|
</div>
|
|
|
|
</StyledWrapper>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default QueryResult;
|