You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Prowlarr/frontend/src/Components/FieldSet.js

34 lines
581 B

import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './FieldSet.css';
class FieldSet extends Component {
//
// Render
render() {
const {
legend,
children
} = this.props;
return (
<fieldset className={styles.fieldSet}>
<legend className={styles.legend}>
{legend}
</legend>
{children}
</fieldset>
);
}
}
FieldSet.propTypes = {
legend: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
children: PropTypes.node
};
export default FieldSet;