Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import type { Value, Options } from '@react-page/editor';
import Editor from '@react-page/editor';
import React, { useState } from 'react';
import PageLayout from '../components/PageLayout';
import { cellPlugins } from '../plugins/cellPlugins';
const LANGUAGES = [
{
lang: 'en',
label: 'English',
},
{
lang: 'de',
label: 'Deutsch',
},
];
export default function Empty() {
const [value, setValue] = useState<Value | null>(null);
return (
<PageLayout>
<Editor
cellPlugins={cellPlugins}
value={value}
lang={LANGUAGES[0].lang}
onChange={setValue}
languages={LANGUAGES}
/>
</PageLayout>
);
}