import { acceptedFileTypes } from '../shared/acceptedFileTypes'; import React, { useRef } from 'react'; import styled from 'styled-components'; import { Button } from '@sanity/ui'; import { UploadIcon } from '@sanity/icons'; const StyledInput = styled.input` left: -9999999999px; position: absolute; visibility: hidden; `; interface Props { disabled: Boolean; onUpload: (files: FileList) => void; } export const UploadButton = ({ disabled, onUpload }: Props) => { const inputRef = useRef(null); return (
); };