1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.Anchor = exports.anchorBlockIdFromId = void 0;
|
7 |
|
8 | var _react = _interopRequireDefault(require("react"));
|
9 |
|
10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11 |
|
12 | var anchorBlockIdFromId = function anchorBlockIdFromId(storyId) {
|
13 | return "anchor--".concat(storyId);
|
14 | };
|
15 |
|
16 | exports.anchorBlockIdFromId = anchorBlockIdFromId;
|
17 |
|
18 | var Anchor = function Anchor(_ref) {
|
19 | var storyId = _ref.storyId,
|
20 | children = _ref.children;
|
21 | return _react.default.createElement("div", {
|
22 | id: anchorBlockIdFromId(storyId)
|
23 | }, children);
|
24 | };
|
25 |
|
26 | exports.Anchor = Anchor; |
\ | No newline at end of file |