2023-02-11 09:32:52 +00:00
|
|
|
import { lazy, Suspense } from 'solid-js'
|
2023-02-17 09:21:02 +00:00
|
|
|
import { Loading } from '../_shared/Loading'
|
|
|
|
import { useLocalize } from '../../context/localize'
|
2023-02-11 09:32:52 +00:00
|
|
|
|
|
|
|
const Editor = lazy(() => import('../EditorNew/Editor'))
|
|
|
|
|
2022-11-01 19:27:43 +00:00
|
|
|
export const CreateView = () => {
|
2023-02-17 09:21:02 +00:00
|
|
|
const { t } = useLocalize()
|
|
|
|
|
|
|
|
const newArticleIpsum = `<h1>${t('Header')}</h1>
|
|
|
|
<h2>${t('Subheader')}</h2>
|
|
|
|
<p>${t('A short introduction to keep the reader interested')}</p>`
|
|
|
|
|
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
|