Download wp-calypso/client/blocks/authentication/form-divider/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/authentication/form-divider/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/authentication/form-divider/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/authentication/form-divider/index.tsx
420 Bytes
| import clsx from 'clsx'; | |
| import { useTranslate } from 'i18n-calypso'; | |
| import './style.scss'; | |
| const FormDivider = ( { isHorizontal }: { isHorizontal: boolean } ) => { | |
| const translate = useTranslate(); | |
| return ( | |
| <div className={ clsx( 'auth-form__separator', { 'is-horizontal': isHorizontal } ) }> | |
| <div className="auth-form__separator-text">{ translate( 'or' ) }</div> | |
| </div> | |
| ); | |
| }; | |
| export default FormDivider; | |