mirror of
https://github.com/strapi/strapi.git
synced 2025-11-16 18:19:34 +00:00
21 lines
412 B
JavaScript
21 lines
412 B
JavaScript
|
|
import React, { memo } from 'react';
|
||
|
|
import PropTypes from 'prop-types';
|
||
|
|
|
||
|
|
import FieldItem from '../FieldItem';
|
||
|
|
|
||
|
|
const Item = ({ name, size, type }) => {
|
||
|
|
return <FieldItem name={name} size={size} type={type} />;
|
||
|
|
};
|
||
|
|
|
||
|
|
Item.defaultProps = {
|
||
|
|
type: 'string',
|
||
|
|
};
|
||
|
|
|
||
|
|
Item.propTypes = {
|
||
|
|
name: PropTypes.string.isRequired,
|
||
|
|
size: PropTypes.number.isRequired,
|
||
|
|
type: PropTypes.string,
|
||
|
|
};
|
||
|
|
|
||
|
|
export default memo(Item);
|