basic theme editor
This commit is contained in:
parent
4960df370c
commit
bacd1777be
1 changed files with 138 additions and 38 deletions
|
|
@ -1,12 +1,20 @@
|
|||
import {ReactNode} from 'react';
|
||||
import Column from './Column.tsx';
|
||||
import Row from './Row.tsx';
|
||||
import Button from './Button.tsx';
|
||||
import './Dialog.css';
|
||||
|
||||
export default function Dialog({children, className}: {
|
||||
children: ReactNode;
|
||||
export default function Dialog({children, className, title, onClose}: {
|
||||
title?: string;
|
||||
children?: ReactNode;
|
||||
className?: string;
|
||||
onClose?: () => void;
|
||||
}) {
|
||||
return <Column className={'Dialog overflow-scroll ' + (className ?? '')}>
|
||||
<Row>
|
||||
<h3 className='flex-grow'>{title}</h3>
|
||||
{onClose && <Button text='x' onClick={onClose} />}
|
||||
</Row>
|
||||
{children}
|
||||
</Column>
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue