Download wp-calypso/client/layout/loader.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 463 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/layout/loader.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/layout/loader.jsx
-
curl -L -o loader.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/layout/loader.jsx
463 Bytes
| import clsx from 'clsx'; | |
| import { useSelector } from 'react-redux'; | |
| import PulsingDot from 'calypso/components/pulsing-dot'; | |
| import { isSectionLoading } from 'calypso/state/ui/selectors'; | |
| import './loader.scss'; | |
| export default function LayoutLoader() { | |
| const isLoading = useSelector( isSectionLoading ); | |
| return ( | |
| <div className={ clsx( 'layout__loader', { 'is-active': isLoading } ) }> | |
| { isLoading && <PulsingDot delay={ 400 } active /> } | |
| </div> | |
| ); | |
| } | |