import BLOG from '@/blog.config' import * as ThemeMap from '@/themes' import { useState } from 'react' import Select from './Select' import { ALL_THEME } from '@/themes' import { useGlobal } from '@/lib/global' /** * * @returns 调试面板 */ export function DebugPanel () { const [show, setShow] = useState(false) const { theme, changeTheme, switchTheme } = useGlobal() const themeOptions = [] ALL_THEME.forEach(t => { themeOptions.push({ value: t, text: t }) }) function toggleShow () { setShow(!show) } function filterResult (text) { switch (text) { case 'true': return true case 'false': return false case '': return '-' } return text } return ( <> {/* 调试按钮 */}