add code editor

This commit is contained in:
SethBurkart123
2024-03-31 11:37:29 +11:00
parent cfeb7ede5b
commit 0be761ce62
5 changed files with 49 additions and 20 deletions
+14
View File
@@ -0,0 +1,14 @@
import CodeEditor from '../components/CodeEditor';
export default function ThemeCreator() {
const handleSave = (value: string) => {
// Save the theme
console.log(value)
}
return (
<div className='w-full h-full'>
<CodeEditor initialState={'.hi {}'} callback={handleSave} />
</div>
);
}