blob: 23ef6bf5dfa7a838f7c2c1b7daffee5a5c3c6811 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import React from 'react';
import styled from 'styled-components'
import {CodeLike} from "../Common/mixins";
import useFetchPaste from "../hooks/useFetchPaste";
const RawText = styled.pre`
${CodeLike}
padding: 0 1em;
`
const Raw = ({hash}) => {
const { err, result } = useFetchPaste(hash)
return <RawText>{result?.content || err}</RawText>
}
export default Raw
|