react-code-dataset / wp-calypso /client /my-sites /stats /components /empty-module-card /empty-module-card.tsx
react-code-dataset / wp-calypso /client /my-sites /stats /components /empty-module-card /empty-module-card.tsx
Download wp-calypso/client/my-sites/stats/components/empty-module-card/empty-module-card.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/stats/components/empty-module-card/empty-module-card.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/stats/components/empty-module-card/empty-module-card.tsx
-
curl -L -o empty-module-card.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/stats/components/empty-module-card/empty-module-card.tsx
757 Bytes
| import clsx from 'clsx'; | |
| import './styles.scss'; | |
| type EmptyModuleCardProps = { | |
| className?: string; | |
| icon?: React.ReactNode; | |
| description?: string | React.ReactNode; | |
| cards?: React.ReactNode; | |
| children?: React.ReactNode; | |
| }; | |
| const EmptyModuleCard = ( { | |
| className, | |
| icon, | |
| description, | |
| cards, | |
| children, | |
| }: EmptyModuleCardProps ) => { | |
| return ( | |
| <div className={ clsx( className, 'stats-empty-module-card' ) }> | |
| <div className="stats-empty-module-card__icon">{ icon }</div> | |
| <div className="stats-empty-module-card__content"> | |
| <div className="stats-empty-module-card__description">{ description }</div> | |
| <div className="stats-empty-module-card__cards">{ cards }</div> | |
| { children } | |
| </div> | |
| </div> | |
| ); | |
| }; | |
| export default EmptyModuleCard; | |