18 lines
378 B
TypeScript
18 lines
378 B
TypeScript
import { CodeEditor } from '@/components/inputs/CodeEditor'
|
|
import React from 'react'
|
|
|
|
type Props = {
|
|
customCss?: string
|
|
onCustomCssChange: (css: string) => void
|
|
}
|
|
|
|
export const CustomCssSettings = ({ customCss, onCustomCssChange }: Props) => {
|
|
return (
|
|
<CodeEditor
|
|
defaultValue={customCss ?? ''}
|
|
lang="css"
|
|
onChange={onCustomCssChange}
|
|
/>
|
|
)
|
|
}
|