Separate into components

This commit is contained in:
Joey Yakimowich-Payne 2025-10-13 11:40:17 -06:00
commit d97ffc9837
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
13 changed files with 441 additions and 143 deletions

View file

@ -0,0 +1,18 @@
'use client'
import type { ChallengeDetail } from './types'
type ChallengeHeaderProps = {
challenge: ChallengeDetail
}
export default function ChallengeHeader({ challenge }: ChallengeHeaderProps) {
return (
<div className='mb-8'>
<h1 className='mb-2 text-3xl font-bold text-text-primary'>{challenge.name}</h1>
{challenge.description && (
<p className='text-lg text-text-secondary'>{challenge.description}</p>
)}
</div>
)
}