2020-04-10 05:08:09 +00:00
|
|
|
import React from 'react';
|
|
|
|
import Modal, { RequiredModalProps } from '@/components/elements/Modal';
|
2020-07-04 23:26:07 +00:00
|
|
|
import tw from 'twin.macro';
|
2020-04-10 05:08:09 +00:00
|
|
|
|
|
|
|
const ChecksumModal = ({ checksum, ...props }: RequiredModalProps & { checksum: string }) => (
|
|
|
|
<Modal {...props}>
|
2020-07-04 23:26:07 +00:00
|
|
|
<h3 css={tw`mb-6`}>Verify file checksum</h3>
|
|
|
|
<p css={tw`text-sm`}>
|
2020-08-24 01:06:47 +00:00
|
|
|
The checksum of this file is:
|
2020-04-10 05:08:09 +00:00
|
|
|
</p>
|
2020-07-04 23:26:07 +00:00
|
|
|
<pre css={tw`mt-2 text-sm p-2 bg-neutral-900 rounded`}>
|
|
|
|
<code css={tw`block font-mono`}>{checksum}</code>
|
2020-04-10 05:08:09 +00:00
|
|
|
</pre>
|
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default ChecksumModal;
|