22 lines
571 B
JavaScript
22 lines
571 B
JavaScript
|
import React, { state } from "react";
|
||
|
import { CopyBlock, googlecode } from "react-code-blocks";
|
||
|
// googlecode
|
||
|
|
||
|
export function ShowComparisons({ links, show }) {
|
||
|
return (
|
||
|
<div className={`text-left ${show ? "" : "hidden"}`}>
|
||
|
<h3 className="text-lg mt-8">Load comparisons</h3>
|
||
|
<CopyBlock
|
||
|
text={JSON.stringify(links, null, 4)}
|
||
|
language={"js"}
|
||
|
showLineNumbers={false}
|
||
|
startingLineNumber={0}
|
||
|
wrapLines={true}
|
||
|
textColor={"black"}
|
||
|
theme={googlecode}
|
||
|
codeBlock={true}
|
||
|
/>
|
||
|
</div>
|
||
|
);
|
||
|
}
|