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

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

  return (
    <Container makeFullHeight>
      <ActionLog
        inInstructor={false}
        exerciseId={exerciseId}
        teamId={teamId}
        channelId={channelId}
        getFullscreenLink={actionLogId => [
          '/trainee/:exerciseId/:teamId/:channelId/form/:actionLogId',
          {
            params: { exerciseId, teamId, channelId, actionLogId },
          },
        ]}
      />
    </Container>
  )
}

export default Page
