blob: 8d3a1cabc97cdfe01af0851dda74e1eecf45929b (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { Box, Heading } from '@chakra-ui/react'
import React from 'react'
import UniOrg from '../util/uniorg'
import getOrgText from '../util/getOrgText'
export interface PreviewProps {
id: string
title: string
}
export const Preview = (props: PreviewProps) => {
const { id, title } = props
const text = getOrgText(id)
return (
<Box>
<Heading>{title}</Heading>
<UniOrg orgText={text} />
</Box>
)
}
|