react-code-dataset / wp-calypso /client /sites /settings /performance /edge-cache-loading-placeholder.tsx
react-code-dataset / wp-calypso /client /sites /settings /performance /edge-cache-loading-placeholder.tsx
Download wp-calypso/client/sites/settings/performance/edge-cache-loading-placeholder.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/settings/performance/edge-cache-loading-placeholder.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/sites/settings/performance/edge-cache-loading-placeholder.tsx
-
curl -L -o edge-cache-loading-placeholder.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/settings/performance/edge-cache-loading-placeholder.tsx
565 Bytes
| import { LoadingPlaceholder } from '@automattic/components'; | |
| import styled from '@emotion/styled'; | |
| const Root = styled.div( { | |
| display: 'flex', | |
| gap: '1em', | |
| flexDirection: 'column', | |
| marginBottom: '16px', | |
| } ); | |
| const TextLoadingPlaceholder = styled( LoadingPlaceholder )( { | |
| height: '1.7em', | |
| width: '7em', | |
| } ); | |
| const LoadingPlaceholderStyled = styled( LoadingPlaceholder )( { | |
| height: '1.7em', | |
| width: '24em', | |
| } ); | |
| export function EdgeCacheLoadingPlaceholder() { | |
| return ( | |
| <Root> | |
| <TextLoadingPlaceholder /> | |
| <LoadingPlaceholderStyled /> | |
| </Root> | |
| ); | |
| } | |