import { h } from 'preact';
import PropTypes from 'prop-types';
const RequestManager = ({
resource: data,
handleRequestRejection,
handleRequestApproval,
}) => {
return (
Joining Request
Manage request coming to all the channels
{data.map((request) => (
{request.channel_name}
{request.member_name}
))}
);
};
RequestManager.propTypes = {
resource: PropTypes.shape({
data: PropTypes.object,
}).isRequired,
handleRequestRejection: PropTypes.func.isRequired,
handleRequestApproval: PropTypes.func.isRequired,
};
export default RequestManager;