UNPKG

@chayns-components/core

Version:

A set of beautiful React components for developing your own applications with chayns.

10 lines 359 B
import { createContext, useContext } from 'react'; export const MasonryContext = /*#__PURE__*/createContext(undefined); export const useMasonryContext = () => { const context = useContext(MasonryContext); if (!context) { throw new Error('Masonry.Item must be used inside Masonry.'); } return context; }; //# sourceMappingURL=Masonry.context.js.map