otterscan/src/address/Contract.tsx
2022-08-16 00:46:05 -03:00

20 lines
422 B
TypeScript

import React from "react";
import { SyntaxHighlighter, docco } from "../highlight-init";
type ContractProps = {
content: any;
};
const Contract: React.FC<ContractProps> = ({ content }) => (
<SyntaxHighlighter
className="w-full h-full border font-code text-base"
language="solidity"
style={docco}
showLineNumbers
>
{content ?? ""}
</SyntaxHighlighter>
);
export default React.memo(Contract);