Spaces:
Configuration error
Configuration error
File size: 620 Bytes
74aacd5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import React from 'react'
import { useSetRecoilState } from 'recoil'
import { fileState } from '../../store/Atoms'
import FileSelect from '../FileSelect/FileSelect'
const LandingPage = () => {
const setFile = useSetRecoilState(fileState)
return (
<div className="landing-page">
<h1>
Image inpainting powered by 🦙
<a href="https://github.com/saic-mdal/lama">LaMa</a>
</h1>
<div className="landing-file-selector">
<FileSelect
onSelection={async f => {
setFile(f)
}}
/>
</div>
</div>
)
}
export default LandingPage
|