Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can β€” learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company πŸ‘‡

673 B
Raw Blame
// ===================
// Β© AngelaMos | 2026
// index.tsx
// ===================

import { Link, useParams } from 'react-router-dom'
import { Workspace } from '@/components'
import { ROUTES } from '@/config'
import styles from './workspace.module.scss'

export function Component(): React.ReactElement {
  const { cid } = useParams<{ cid: string }>()

  if (!cid) {
    return <div className={styles.page}>No challenge selected</div>
  }

  return (
    <div className={styles.page}>
      <Link to={ROUTES.HOME} className={styles.back}>
        Back to challenges
      </Link>
      <Workspace cid={cid} />
    </div>
  )
}

Component.displayName = 'ChallengeWorkspace'