webapp/src/components/Views/Create.tsx

20 lines
509 B
TypeScript
Raw Normal View History

2023-02-11 09:32:52 +00:00
import { lazy, Suspense } from 'solid-js'
import { t } from '../../utils/intl'
import { Loading } from '../Loading'
const Editor = lazy(() => import('../EditorNew/Editor'))
const newArticleIpsum = `<h1>${t('Header')}</h1>
<h2>${t('Subheader')}</h2>
<p>${t('A short introduction to keep the reader interested')}</p>`
2022-10-18 15:50:49 +00:00
2022-11-01 19:27:43 +00:00
export const CreateView = () => {
2022-09-09 11:53:35 +00:00
return (
2023-02-11 09:32:52 +00:00
<Suspense fallback={<Loading />}>
<Editor initialContent={newArticleIpsum} />
</Suspense>
2022-09-09 11:53:35 +00:00
)
}
2022-11-01 19:27:43 +00:00
export default CreateView