import React from 'react'; import { useParameter, useStorybookState } from '@storybook/manager-api'; import { AddonPanel } from '@storybook/components'; import { PARAM_KEY } from './constants.ts'; import * as Blocks from '@storybook/blocks'; interface PanelProps { active: boolean | undefined; } const Tab: React.FC = (props) => { const { storyId } = useStorybookState(); // Get the current story ID const markdownContent = useParameter>(PARAM_KEY, {}); // Fetch Markdown content specific to the current story const content = markdownContent[storyId] || 'No documentation provided for this story.'; console.log('PROPS', props); return (
{content}
); }; export default Tab;