<template>
  <div class="switch-table-btn" @click.stop="handleClick">
    <!-- Icon can be replaced or styled via CSS class -->
  </div>
</template>

<script>
export default {
  name: "SwitchTableButton",
  emits: ["click"],
  setup(props, { emit }) {
    const handleClick = () => {
      emit("click")
    }
    return {
      handleClick
    }
  }
}
</script>

<style lang="scss" scoped>
.switch-table-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2005; /* High z-index to overlay video */
  width: 30px;
  height: 30px;
  background-image: url("~@/assets/images/icon/switch_tab.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  
  /* Add a hover effect for better UX */
  &:active {
    transform: scale(0.95);
    opacity: 0.8;
  }
}
</style>
