import { JSXElement } from 'solid-js';
import { TodoCollection, TodoCollectionContext } from './create'

export const TodoCollectionProvider = (props : {children:JSXElement, value: TodoCollection}) => {
  return (
    <TodoCollectionContext.Provider value={props.value}> {props.children} </TodoCollectionContext.Provider>
  )
}
