@activecollab/components
Version:
ActiveCollab Components
24 lines • 670 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
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",
...rest
} = _ref;
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