UNPKG

@indoqa/style-system

Version:

A style system for React with Typescript typed theme support and several base components.

14 lines 613 B
import * as React from 'react'; export const testGridContext = (spacing, child) => { if (spacing === null || spacing === undefined) { if (process.env.NODE_ENV !== 'production') { return (React.createElement("div", null, "Missing ", React.createElement("span", { style: { color: 'white', backgroundColor: 'red' } }, "GridContext"), "This component is rendered outside of Grid")); } return React.createElement("div", { className: "grid-context-missing" }); } return child; }; //# sourceMappingURL=testGridContext.js.map