// @flow import React from 'react'; import { FormField } from 'component/common/form'; type Props = { setClientSetting: (boolean) => void, enablePrereleases: boolean, }; function SettingEnablePrereleases(props: Props) { const { setClientSetting, enablePrereleases } = props; return ( { setClientSetting(!enablePrereleases); }} checked={enablePrereleases} /> ); } export default SettingEnablePrereleases;