UNPKG

832 BJavaScriptView Raw
1import "core-js/modules/es.array.slice.js";
2import "core-js/modules/es.object.freeze.js";
3
4var _templateObject;
5
6function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
7
8import dedent from 'ts-dedent';
9var hasWarned = false;
10export function LinkTo() {
11 if (!hasWarned) {
12 // eslint-disable-next-line no-console
13 console.error(dedent(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n LinkTo has moved to addon-links/react:\n import LinkTo from '@storybook/addon-links/react';\n "]))));
14 hasWarned = true;
15 }
16
17 return null;
18}
19export { linkTo, hrefTo, withLinks, navigate } from './utils';
20
21if (module && module.hot && module.hot.decline) {
22 module.hot.decline();
23}
\No newline at end of file