mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 16:33:12 +08:00
17 lines
348 B
JavaScript
17 lines
348 B
JavaScript
import React from 'react';
|
|
import styles from './Form.css';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const Form = ({ children, className = '' }) => (
|
|
<form className={className}>
|
|
<ul className={styles.detailList}>{children}</ul>
|
|
</form>
|
|
);
|
|
|
|
Form.propTypes = {
|
|
className: PropTypes.string,
|
|
children: PropTypes.node,
|
|
};
|
|
|
|
export default Form;
|