mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
17 lines
367 B
TypeScript
17 lines
367 B
TypeScript
import { Code } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
interface Props {
|
|
code: string;
|
|
}
|
|
|
|
const ContractVerificationFormCodeSnippet = ({ code }: Props) => {
|
|
return (
|
|
<Code whiteSpace="pre-wrap" wordBreak="break-all" p={ 2 } borderRadius="base">
|
|
{ code }
|
|
</Code>
|
|
);
|
|
};
|
|
|
|
export default React.memo(ContractVerificationFormCodeSnippet);
|