import { whisper } from '@oliveai/ldk';
import { MarkdownWhisperCopyMode, WhisperComponentType } from '@oliveai/ldk/dist/whisper/types';
const markdownSampleText = `
# Guess which link is the correct link of Olive Helps dev hub.
## You only have a single chance!

**We have a brief description table for you:**
| People | What they say |
| :----------| :----------- |
| Josef: | Link 3 is the correct one. |
| Michael:| Link 1 is not the correct one. |
| Brett: | They are all lying. |
Knowing that only one person is not lying and we only have 1 link that can direct you to Olive Helps, which one is the correct link?
[Link 3](https://www.oliveai.dev/)
export const markdownWhisper = async () => {
label: 'Markdown whisper',
body: markdownSampleText,
type: WhisperComponentType.Markdown,
copyable: MarkdownWhisperCopyMode.Body,
type: WhisperComponentType.Markdown,
onLinkClick: (error, linkName) => {
console.info(`Received click on the link: ${JSON.stringify(linkName)}`);
if (linkName === 'Link 1') {
console.log('This is not the correct link.');
} else if (linkName === 'Link 2') {
console.log('This is not the correct link.');
} else if (linkName === 'Link 3') {
'Yes! This is the correct link! You are going to Olive Helps Dev Hub... ',
console.log(error.message);
tooltip: 'Link 3 is the right answer!',