import { h } from 'preact'; import PropTypes from 'prop-types'; import { InviteForm } from './InviteForm'; import { SettingsForm } from './SettingsForm'; export const ModSection = ({ handleChannelInvitations, invitationUsernames, handleInvitationUsernames, channelDescription, handleDescriptionChange, channelDiscoverable, handleChannelDiscoverableStatus, handleChannelDescriptionChanges, currentMembershipRole, }) => { if (currentMembershipRole === 'member') { return null; } return (