<template>
    <PopupMenu>
        <template v-slot:menubutton><slot></slot></template>
        <template v-slot:menuitems>
            <PopupMenuItem @click="$emit('copy', row)">Copy</PopupMenuItem>
            <PopupMenuItem :disabled="!clipboard" @click="$emit('paste', row)">Paste</PopupMenuItem>
        </template>
    </PopupMenu>
</template>

<script>
    import PopupMenu from "../components/PopupMenu.vue"
    import PopupMenuItem from "../components/PopupMenuItem.vue"

    export default {
    components: {
            PopupMenu, PopupMenuItem,
    },
    props: {
            row: Object,
            clipboard: Object
        }
    }
</script>

<style>

</style>