import type { FC } from 'react'; import React from 'react'; import type { IPreviewerProps } from 'dumi'; import { useTabMeta } from 'dumi'; import CodePreviewer from './CodePreviewer'; import DesignPreviewer from './DesignPreviewer'; const Previewer: FC = ({ ...props }) => { const tab = useTabMeta(); if (tab?.frontmatter.title === 'Design') { return ; } return ; }; export default Previewer;