import { Meta } from '@storybook/addon-docs';
import Link from '@cloudscape-design/components/link';
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';

<Meta title="Migration/MarkdownViewer" />

# Migrating from NorthStar legacy - MarkdownViewer

Use <Link href='https://aws.github.io/aws-northstar/?path=/story/components-markdownviewer--default' target='_blank' external>NorthStar v2 MarkdownViewer component</Link>

## Update Import

```diff
- import MarkdownViewer from 'aws-northstar/components/MarkdownViewer';
+ import MarkdownViewer from '@aws-northstar/ui/components/MarkdownViewer';
```

export const Component = () => {
  return <SyntaxHighlighter/>;
};