'use client';

import IdeaBoard from '@/components/IdeaBoard';
import { useProjectContext } from '@/providers/ProjectProvider';

export default function IdeasPage() {
    const { project, projectId, createIdea, updateIdea, deleteIdea } = useProjectContext();

    return (
        <IdeaBoard
            projectId={projectId}
            ideas={project.ideas || []}
            onCreate={(data) => createIdea(projectId, data)}
            onUpdateIdea={(id, data) => updateIdea(projectId, id, data)}
            onDelete={(id) => deleteIdea(projectId, id)}
        />
    );
}
