feat: update ContextMenu props var to use new interface and move setting of menuItems to Message component
This commit is contained in:
parent
11802040bd
commit
0ea9c8f168
2 changed files with 9 additions and 11 deletions
|
@ -5,14 +5,9 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const props = defineProps<{ cursorX: number, cursorY: number }>();
|
||||
import type { ContextMenuItem } from '~/types/interfaces';
|
||||
|
||||
|
||||
|
||||
const menuItems = [
|
||||
{ name: "Edit", callback: editMessage },
|
||||
{ name: "Reply", callback: replyMessage }
|
||||
];
|
||||
const props = defineProps<{ menuItems: ContextMenuItem[], cursorX: number, cursorY: number }>();
|
||||
|
||||
onMounted(() => {
|
||||
const contextMenu = document.getElementById("context-menu");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue