import ActionLog from '@/actionlog/ActionLog'
// import FormTool2 from '@/actionlog/ToolAction/components/Form2'
import { useParams } from '@/router'
import Container from '@inject/shared/components/Container'

const Page = () => {
  const { exerciseId, teamId, channelId } = useParams(
    '/trainee/:exerciseId/:teamId/:channelId/tool'
  )

  return (
    <Container>
      <ActionLog
        inInstructor={false}
        exerciseId={exerciseId}
        teamId={teamId}
        channelId={channelId}
        getFullscreenLink={actionLogId => [
          '/trainee/:exerciseId/:teamId/:channelId/tool/:actionLogId',
          {
            params: { exerciseId, teamId, channelId, actionLogId },
          },
        ]}
        noDataProps={{
          title: "You haven't used any tools yet",
          description:
            'Responses from tools will appear here. You can use a tool by \
              clicking on it in the right sidebar',
        }}
        scrollToLast
      />
    </Container>
  )
}

export default Page
