iceshrimp-legacy/packages/client/src/ui/deck/mentions-column.vue

36 lines
739 B
Vue
Raw Normal View History

<template>
2023-04-08 02:01:42 +02:00
<XColumn
:column="column"
:is-stacked="isStacked"
@parent-focus="($event) => emit('parent-focus', $event)"
>
<template #header
><i class="ph-at ph-bold ph-lg" style="margin-right: 8px"></i
>{{ column.name }}</template
>
2023-04-08 02:01:42 +02:00
<XNotes :pagination="pagination" />
</XColumn>
</template>
<script lang="ts" setup>
2023-04-08 02:01:42 +02:00
import {} from "vue";
import XColumn from "./column.vue";
2023-07-17 00:32:32 +02:00
import type { Column } from "./deck-store";
2023-04-08 02:01:42 +02:00
import XNotes from "@/components/MkNotes.vue";
defineProps<{
column: Column;
isStacked: boolean;
}>();
const emit = defineEmits<{
2023-04-08 02:01:42 +02:00
(ev: "parent-focus", direction: "up" | "down" | "left" | "right"): void;
}>();
const pagination = {
2023-04-08 02:01:42 +02:00
endpoint: "notes/mentions" as const,
limit: 10,
};
</script>