app/assets/javascripts/components/overview/withdrawn_selector.jsx
import React from 'react';
import YesNoSelector from './yes_no_selector';
const WithdrawnSelector = ({ course, editable, updateCourse }) => {
if (!editable || !Features.wikiEd) {
return null;
}
return (
<YesNoSelector
courseProperty="withdrawn"
label={I18n.t('courses.withdrawn')}
course={course}
editable={editable}
updateCourse={updateCourse}
/>
);
};
export default WithdrawnSelector;