import { ArrowLeftIcon } from '@heroicons/react/outline' import React, { useState } from 'react' import { useToggle, useWindowSize } from 'react-use' import Button from './components/Button' import FileSelect from './components/FileSelect' import ShortcutsModal from './components/ShortcutsModal' import Editor from './Editor' function App() { const [file, setFile] = useState() const [showShortcuts, toggleShowShortcuts] = useToggle(false) const windowSize = useWindowSize() return (
{file ? ( ) : ( <> )} {file ? (
{showShortcuts && }
{file ? ( ) : ( <>

Image inpainting powered by 🦙 LaMa

{ setFile(f) }} />
)}
) } export default App