2
0

feat(theme): Add custom css settings

This commit is contained in:
Baptiste Arnaud
2022-01-24 15:29:01 +01:00
parent b0abe5b8fa
commit 21448bcc8a
9 changed files with 88 additions and 28 deletions

View File

@ -0,0 +1,17 @@
import { CodeEditor } from 'components/shared/CodeEditor'
import React from 'react'
type Props = {
customCss?: string
onCustomCssChange: (css: string) => void
}
export const CustomCssSettings = ({ customCss, onCustomCssChange }: Props) => {
return (
<CodeEditor
value={customCss ?? ''}
lang="css"
onChange={onCustomCssChange}
/>
)
}