Download wp-calypso/client/signup/flow-progress-indicator/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/signup/flow-progress-indicator/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/signup/flow-progress-indicator/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/signup/flow-progress-indicator/index.jsx
608 Bytes
| import clsx from 'clsx'; | |
| import { localize } from 'i18n-calypso'; | |
| import './style.scss'; | |
| const FlowProgressIndicator = ( { flowLength, positionInFlow, translate, flowName } ) => { | |
| if ( flowLength > 1 ) { | |
| const flowClassName = clsx( | |
| 'flow-progress-indicator', | |
| `flow-progress-indicator__${ flowName }` | |
| ); | |
| return ( | |
| <div className={ flowClassName }> | |
| { translate( 'Step %(stepNumber)d of %(stepTotal)d', { | |
| args: { | |
| stepNumber: positionInFlow + 1, | |
| stepTotal: flowLength, | |
| }, | |
| } ) } | |
| </div> | |
| ); | |
| } | |
| return null; | |
| }; | |
| export default localize( FlowProgressIndicator ); | |