UNPKG

@activecollab/components

Version:

ActiveCollab Components

26 lines 876 B
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; const _excluded = ["children", "gap", "renderAs"]; import React from "react"; import { StyledEntityGroup } from "./Styles"; export const EntityGroupContext = /*#__PURE__*/React.createContext({ renderAs: "grid" }); export const EntityGroup = _ref => { let { children, gap, renderAs = "grid" } = _ref, rest = _objectWithoutPropertiesLoose(_ref, _excluded); return /*#__PURE__*/React.createElement(EntityGroupContext.Provider, { value: { renderAs: renderAs } }, /*#__PURE__*/React.createElement(StyledEntityGroup, _extends({ $renderAs: renderAs, $gap: gap }, rest), children)); }; EntityGroup.displayName = "EntityGroup"; //# sourceMappingURL=EntityGroup.js.map