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

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

  return (
    <Container id='scrollAlog'>
      <ActionLog
        inInstructor
        exerciseId={exerciseId}
        teamId={teamId}
        channelId={channelId}
        getFullscreenLink={actionLogId => [
          '/instructor/:exerciseId/:teamId/:channelId/info/:actionLogId',
          {
            params: { exerciseId, teamId, channelId, actionLogId },
          },
        ]}
      />
    </Container>
  )
}

export default Page
