docbrown/app/javascript/chat/ChatChannelSettings/ModFaqSection.jsx
Katie Davis 76453b41fb
Updates ESLint rules to error on default imports (#12512)
* add rule

* add named imports

* more missed files

* so many files
2021-02-02 10:24:03 -05:00

28 lines
654 B
JavaScript

import { h } from 'preact';
import PropTypes from 'prop-types';
export const ModFaqSection = ({ currentMembershipRole }) => {
if (currentMembershipRole === 'member') {
return null;
}
return (
<div className="crayons-card grid gap-2 p-4 faq-section">
<p className="contact-details">
Questions about Connect moderation?
<a
href={`/contact`}
target="_blank"
rel="noopener noreferrer"
className="mx-2 url-link"
>
Contact site admins
</a>
</p>
</div>
);
};
ModFaqSection.propTypes = {
currentMembershipRole: PropTypes.string.isRequired,
};