UNPKG

464 BJavaScriptView Raw
1import dedent from 'ts-dedent';
2let hasWarned = false;
3export function LinkTo() {
4 if (!hasWarned) {
5 // eslint-disable-next-line no-console
6 console.error(dedent`
7 LinkTo has moved to addon-links/react:
8 import LinkTo from '@storybook/addon-links/react';
9 `);
10 hasWarned = true;
11 }
12
13 return null;
14}
15export { linkTo, hrefTo, withLinks, navigate } from './utils';
16
17if (module && module.hot && module.hot.decline) {
18 module.hot.decline();
19}
\No newline at end of file