import { FC } from 'react'; import { LocalizeText } from '../../../api'; import { NitroCardContentView } from '../../../layout'; 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(e.target.checked) } } />
{ setIsHandlingHelpRequests(e.target.checked) } } />
{ setIsHandlingBullyReports(e.target.checked) } } />


); }