xyyd-fatfox/src/settings/SettingsOverlayContent.tsx

31 lines
1008 B
TypeScript

import useRouterStore from '@/useRouterStore'
import { defineComponent } from 'vue'
import UserPage from '@/user/UserPage'
import BackgroundPage from '@/layout/background/BackgroundPage'
import ThemeProvider from '@/utils/ThemeProvider'
import BlockSettings from '@/layout/grid/BlockSettings'
import SearchSetting from '@/layout/grid/SearchSetting'
import TimeSetting from '@/layout/grid/TimeSetting'
export default defineComponent(() => {
const router = useRouterStore()
return () => (
<div class="w-0 h-full flex-grow backdrop-blur">
<ThemeProvider>
{router.path === 'settings-user' ? (
<UserPage />
) : router.path === 'settings-background' ? (
<BackgroundPage />
) : router.path === 'settings-block' ? (
<BlockSettings />
) : router.path === 'settings-search' ? (
<SearchSetting />
) : router.path === 'settings-time' ? (
<TimeSetting />
) : null}
</ThemeProvider>
</div>
)
})