2023-03-03 09:01:11 +01:00
|
|
|
import { CodeEditor } from '@/components/inputs/CodeEditor'
|
2022-01-24 15:29:01 +01:00
|
|
|
import React from 'react'
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
customCss?: string
|
|
|
|
|
onCustomCssChange: (css: string) => void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const CustomCssSettings = ({ customCss, onCustomCssChange }: Props) => {
|
|
|
|
|
return (
|
|
|
|
|
<CodeEditor
|
2023-02-21 15:25:14 +01:00
|
|
|
defaultValue={customCss ?? ''}
|
2022-01-24 15:29:01 +01:00
|
|
|
lang="css"
|
|
|
|
|
onChange={onCustomCssChange}
|
|
|
|
|
/>
|
|
|
|
|
)
|
|
|
|
|
}
|