otterscan/src/address/RawABI.tsx
2021-10-24 23:04:04 -03:00

20 lines
426 B
TypeScript

import React from "react";
import { SyntaxHighlighter, docco } from "../highlight-init";
type RawABIProps = {
abi: any[];
};
const RawABI: React.FC<RawABIProps> = ({ abi }) => (
<SyntaxHighlighter
className="w-full h-60 border font-code text-base"
language="json"
style={docco}
showLineNumbers
>
{JSON.stringify(abi, null, " ") ?? ""}
</SyntaxHighlighter>
);
export default React.memo(RawABI);