'use client';

import { SupplyChainContext } from './SupplyChainContext';
import { useSupplyChainData } from './hooks';

export const SupplyChainProvider = ({ children }: Readonly<{ children: React.ReactNode }>) => {
    const { farms, processors } = useSupplyChainData();
    return (
        <SupplyChainContext.Provider value={{ farms, processors }}>
            {children}
        </SupplyChainContext.Provider>
    );
};
