// https://vitepress.dev/guide/custom-theme
import {h} from 'vue'
import type {Theme} from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import './style.css'
import AdSenseAside from './components/AdSenseAside.vue'

export default {
    extends: DefaultTheme,
    Layout: () => {
        return h(DefaultTheme.Layout, null, {
            // https://vitepress.dev/guide/extending-default-theme#layout-slots
            'aside-ads-before': () => h(AdSenseAside)
        })
    },
    enhanceApp({app, router, siteData}) {
        // ...
    }
} satisfies Theme
