2022-06-17 20:29:03 +00:00
|
|
|
import React, { state } from "react";
|
|
|
|
import { CopyBlock, googlecode } from "react-code-blocks";
|
2022-06-19 23:25:55 +00:00
|
|
|
import { Separator } from "../separator.js";
|
2022-06-17 20:29:03 +00:00
|
|
|
// googlecode
|
|
|
|
|
|
|
|
export function ShowComparisons({ links, show }) {
|
|
|
|
return (
|
|
|
|
<div className={`text-left ${show ? "" : "hidden"}`}>
|
2022-06-19 23:25:55 +00:00
|
|
|
<Separator />
|
2022-06-18 23:10:27 +00:00
|
|
|
<h3 className="text-lg mt-8">Comparisons</h3>
|
2022-06-17 20:29:03 +00:00
|
|
|
<CopyBlock
|
|
|
|
text={JSON.stringify(links, null, 4)}
|
|
|
|
language={"js"}
|
|
|
|
showLineNumbers={false}
|
|
|
|
startingLineNumber={0}
|
|
|
|
wrapLines={true}
|
|
|
|
textColor={"black"}
|
|
|
|
theme={googlecode}
|
|
|
|
codeBlock={true}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|