File size: 610 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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>
);
}
}
|