'use client'; import { Chapter, Puzzle } from '@/lib/puzzles'; import AppLink from './AppLink'; import Icon from './Icon'; export default function Puzzles({ data }: { data: { chapters: Chapter[]; puzzles: Puzzle[] } }) { // const { data, isLoading } = usePuzzles(); return ( <> {data?.chapters?.map((chapter) => (

Chapitre {chapter.id} - {chapter.name}

))} ); }