Spaces:
Paused
Paused
Download client/src/components/globals/ModalChild.jsx from arabdullah/chatty: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/arabdullah/chatty/resolve/main/client/src/components/globals/ModalChild.jsx
- Command line
-
hf download hf://spaces/arabdullah/chatty/client/src/components/globals/ModalChild.jsx
-
curl -L -o ModalChild.jsx https://huggingface.co/spaces/arabdullah/chatty/resolve/main/client/src/components/globals/ModalChild.jsx
415 Bytes
| import React from "react"; | |
| function ModalChild({ children, onClick, className }) { | |
| return ( | |
| <div | |
| onClick={onClick} | |
| className={`flex items-center gap-[.8rem] hover:bg-secondary-light-text modal-child text-[1.4rem] font-medium capitalize px-[1rem] py-[.5rem] rounded-md cursor-default duration-200 active:scale-95 ${className}`} | |
| > | |
| {children} | |
| </div> | |
| ); | |
| } | |
| export default ModalChild; | |