import { FC } from 'react'; import { LocalizeText } from '../../../api'; import { Base, Button, Column, Flex, Text } from '../../../common'; interface GuideToolMenuViewProps { isOnDuty: boolean; isHandlingGuideRequests: boolean; setIsHandlingGuideRequests: (value: boolean) => void; isHandlingHelpRequests: boolean; setIsHandlingHelpRequests: (value: boolean) => void; isHandlingBullyReports: boolean; setIsHandlingBullyReports: (value: boolean) => void; guidesOnDuty: number; helpersOnDuty: number; guardiansOnDuty: number; processAction: (action: string) => void; } export const GuideToolMenuView: FC = props => { const { isOnDuty = false, isHandlingGuideRequests = false, setIsHandlingGuideRequests = null, isHandlingHelpRequests = false, setIsHandlingHelpRequests = null, isHandlingBullyReports = false, setIsHandlingBullyReports = null, guidesOnDuty = 0, helpersOnDuty = 0, guardiansOnDuty = 0, processAction = null } = props; return ( processAction('toggle_duty') } /> { LocalizeText('guide.help.guide.tool.yourstatus') } { LocalizeText(`guide.help.guide.tool.duty.${ (isOnDuty ? 'on' : 'off') }`) } { LocalizeText('guide.help.guide.tool.tickettypeselection.caption') } setIsHandlingGuideRequests(event.target.checked) } /> { LocalizeText('guide.help.guide.tool.tickettypeselection.guiderequests') } setIsHandlingHelpRequests(event.target.checked) } /> { LocalizeText('guide.help.guide.tool.tickettypeselection.onlyhelprequests') } setIsHandlingBullyReports(event.target.checked) } /> { LocalizeText('guide.help.guide.tool.tickettypeselection.bullyreports') }

); }