<template>
  <div class="Mask" :class="mode" @click="$emit('click')" />
</template>

<script setup lang="ts">
defineProps({
  mode: { type: String, default: 'dark' },
})
defineEmits<{ click: [] }>()
</script>

<style lang="less">
.Mask {
  z-index: 3;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--mask-dark);

  &.dark {
    background: var(--mask-dark);
  }

  &.light {
    background: var(--mask-light);
  }

  &.white {
    background: var(--mask-white);
  }
}
</style>
