Download wp-calypso/client/post-editor/media-modal/fieldset.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 610 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/post-editor/media-modal/fieldset.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/post-editor/media-modal/fieldset.jsx
-
curl -L -o fieldset.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/post-editor/media-modal/fieldset.jsx
610 Bytes
| import clsx from 'clsx'; | |
| import PropTypes from 'prop-types'; | |
| import { Component } from 'react'; | |
| import FormFieldset from 'calypso/components/forms/form-fieldset'; | |
| import './fieldset.scss'; | |
| export default class extends Component { | |
| static displayName = 'EditorMediaModalFieldset'; | |
| static propTypes = { | |
| legend: PropTypes.node.isRequired, | |
| }; | |
| render() { | |
| return ( | |
| <FormFieldset className={ clsx( 'editor-media-modal__fieldset', this.props.className ) }> | |
| <legend className="editor-media-modal__fieldset-legend">{ this.props.legend }</legend> | |
| { this.props.children } | |
| </FormFieldset> | |
| ); | |
| } | |
| } | |