Download wp-calypso/client/performance-profiler/components/image/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/performance-profiler/components/image/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/performance-profiler/components/image/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/performance-profiler/components/image/index.tsx
322 Bytes
| type ImageProps = { | |
| src: string; | |
| alt?: string; | |
| className?: string; | |
| }; | |
| const Image = ( props: ImageProps ) => { | |
| const { src, alt, className, ...rest } = props; | |
| return ( | |
| <img | |
| className={ `performance-profiler-image ${ className }` } | |
| src={ src } | |
| alt={ alt } | |
| { ...rest } | |
| /> | |
| ); | |
| }; | |
| export default Image; | |