Spaces:
Sleeping
Sleeping
Download src/components/loader/NewTab.jsx from randome-games/proxy: direct link, hf CLI and curl.
- Browser
- Download file 872 Bytes
-
https://huggingface.co/spaces/randome-games/proxy/resolve/main/src/components/loader/NewTab.jsx
- Command line
-
hf download hf://spaces/randome-games/proxy/src/components/loader/NewTab.jsx
-
curl -L -o NewTab.jsx https://huggingface.co/spaces/randome-games/proxy/resolve/main/src/components/loader/NewTab.jsx
872 Bytes
| import Search from '../SearchContainer'; | |
| import QuickLinks from '../QuickLinks'; | |
| import Logo from '../Logo'; | |
| import { process } from '/src/utils/hooks/loader/utils'; | |
| const NewTab = ({ id, updateFn, options = {} }) => { | |
| const navigating = { | |
| id: id, | |
| go: updateFn, | |
| process: (input) => process(input, false, options.prType || 'scr', options.engine || undefined), | |
| }; | |
| return ( | |
| <div className="h-[calc(100%-100px)] flex flex-col items-center justify-center p-6 gap-8"> | |
| <div className="w-full max-w-2xl"> | |
| <div className="flex justify-center w-full"> | |
| <Logo options="w-[15.8rem] h-30 mr-5 mb-2" /> | |
| </div> | |
| <Search nav={false} logo={false} cls="-mt-3 absolute z-50" navigating={navigating} /> | |
| <QuickLinks cls="mt-16" nav={false} navigating={navigating} /> | |
| </div> | |
| </div> | |
| ); | |
| }; | |
| export default NewTab; | |