summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/global/PageWithHeader.vue
blob: 7ae08d7f66b66ddc797c40e2adb6306fcdee9faf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!--
SPDX-FileCopyrightText: syuilo and misskey-project
SPDX-License-Identifier: AGPL-3.0-only
-->

<template>
<MkStickyContainer class="_pageScrollable">
	<template #header><MkPageHeader v-model:tab="tab" :actions="actions" :tabs="tabs"/></template>
	<slot></slot>
	<template #footer><slot name="footer"></slot></template>
</MkStickyContainer>
</template>

<script lang="ts" setup>
import type { PageHeaderItem } from '@/types/page-header.js';
import type { Tab } from './MkPageHeader.tabs.vue';

const props = withDefaults(defineProps<{
	tabs?: Tab[];
	actions?: PageHeaderItem[] | null;
	thin?: boolean;
	hideTitle?: boolean;
	displayMyAvatar?: boolean;
}>(), {
	tabs: () => ([] as Tab[]),
});

const tab = defineModel<string>('tab');
</script>

<style lang="scss" module>

</style>