1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

moved funcs to editor from image-editor

This commit is contained in:
muerwre 2019-08-08 18:31:55 +07:00
parent 84f73c9cf3
commit 3ed01773c4
5 changed files with 129 additions and 132 deletions

View file

@ -1,12 +1,18 @@
import React, { FC } from 'react';
import React, { FC, ChangeEventHandler } from 'react';
import * as styles from './styles.scss';
import { INode } from '~/redux/types';
import { ImageUploadButton } from '~/components/editors/ImageUploadButton';
interface IProps {
data: INode;
setData: (val: INode) => void;
onUpload: ChangeEventHandler<HTMLInputElement>;
}
const EditorPanel: FC<IProps> = () => <div className={styles.panel} />;
const EditorPanel: FC<IProps> = ({ onUpload }) => (
<div className={styles.panel}>
<ImageUploadButton onUpload={onUpload} />
</div>
);
export { EditorPanel };