1 | import dedent from 'ts-dedent';
|
2 | let hasWarned = false;
|
3 | export 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 | }
|
15 | export { linkTo, hrefTo, withLinks, navigate } from './utils';
|
16 |
|
17 | if (module && module.hot && module.hot.decline) {
|
18 | module.hot.decline();
|
19 | } |
\ | No newline at end of file |