import { useState } from 'react'
import ActiveObjectContext from './ObjectContext'

export const ObjectProvider = ({ children }) => {
    const [activeObject, setActiveObject] = useState(null);
    return (
        <ActiveObjectContext.Provider value={{ activeObject, setActiveObject }}>
            {children}
        </ActiveObjectContext.Provider>
    )
}
