import React from 'react';
import PropTypes from 'prop-types';

import { PageOrderableContainer } from '../page-orderable-container/PageOrderableContainer';
import { orderableComponentsShape } from '../../constants/components/prop-types/orderable-component';

const ChildrenOrderableContainer = ({ childrenOrderableComponents }) => (
    <PageOrderableContainer
        orderableComponents={childrenOrderableComponents}
    />
);

ChildrenOrderableContainer.schema = () => ({
    name: 'ChildrenOrderableContainer'
});

ChildrenOrderableContainer.propTypes = {
    childrenOrderableComponents: PropTypes.arrayOf(orderableComponentsShape)
};

ChildrenOrderableContainer.defaultProps = {
    childrenOrderableComponents: []
};

export default ChildrenOrderableContainer;
