1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-28 14:16:41 +07:00

audio upload buttin

This commit is contained in:
Fedor Katurov 2019-10-21 13:42:00 +07:00
parent d676ff88e4
commit 5e9b6e1819
10 changed files with 89 additions and 6 deletions

View file

@ -0,0 +1,25 @@
import React, { FC } from 'react';
import { EditorUploadButton } from '~/components/editors/EditorUploadButton';
import { INode } from '~/redux/types';
import { UPLOAD_TYPES } from '~/redux/uploads/constants';
interface IProps {
data: INode;
setData: (val: INode) => void;
temp: string[];
setTemp: (val: string[]) => void;
}
const EditorAudioUploadButton: FC<IProps> = ({ data, setData, temp, setTemp }) => (
<EditorUploadButton
data={data}
setData={setData}
temp={temp}
setTemp={setTemp}
accept="audio/*"
icon="audio"
type={UPLOAD_TYPES.AUDIO}
/>
);
export { EditorAudioUploadButton };