/** * @license * Copyright 2025 Vybestack LLC * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; import type { Todo } from '@vybestack/llxprt-code-core'; interface TodoContextType { todos: Todo[]; updateTodos: (todos: Todo[]) => void; refreshTodos: () => void; } const defaultContextValue: TodoContextType = { todos: [], updateTodos: () => { throw new Error( 'TodoContext updateTodos not implemented - use TodoProvider', ); }, refreshTodos: () => { throw new Error( 'TodoContext refreshTodos not implemented - use TodoProvider', ); }, }; export const TodoContext = React.createContext(defaultContextValue); export const useTodoContext = () => React.useContext(TodoContext);