misc_pterodactyl-panel/resources/scripts/components/server/backups/ChecksumModal.tsx

18 lines
597 B
TypeScript
Raw Normal View History

import React from 'react';
import Modal, { RequiredModalProps } from '@/components/elements/Modal';
2020-07-04 23:26:07 +00:00
import tw from 'twin.macro';
const ChecksumModal = ({ checksum, ...props }: RequiredModalProps & { checksum: string }) => (
<Modal {...props}>
<h3 css={tw`mb-6 text-2xl`}>Verify file checksum</h3>
2020-07-04 23:26:07 +00:00
<p css={tw`text-sm`}>
The checksum of this file is:
</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 overflow-auto`}>{checksum}</code>
</pre>
</Modal>
);
export default ChecksumModal;