schlechtenburg/packages/example-site/app.tsx

19 lines
435 B
TypeScript
Raw Normal View History

2022-12-12 13:57:45 +00:00
import { defineComponent } from 'vue';
import { NuxtPage } from '#components';
2022-12-28 19:59:58 +00:00
import './app.scss';
2022-12-29 23:33:04 +00:00
const AdminNav = defineAsyncComponent(() => import('~~/components/_/Nav'));
2022-12-28 19:59:58 +00:00
2022-12-12 13:57:45 +00:00
export default defineComponent({
setup() {
2022-12-28 19:59:58 +00:00
const { me } = useMe();
2022-12-12 13:57:45 +00:00
return () => (
2022-12-28 19:59:58 +00:00
<div class="ex-app">
2022-12-29 23:33:04 +00:00
{me.value ? <AdminNav class="ex-app--edit-nav" /> : null}
2022-12-28 19:59:58 +00:00
<NuxtPage class="ex-app--page" />
</div>
2022-12-12 13:57:45 +00:00
);
},
});