<script setup lang="ts">
import type { CSSProperties } from 'vue';

import { computed } from 'vue';

interface Props {
  /**
   * 高度
   */
  height: number;
}

const props = withDefaults(defineProps<Props>(), {});

const style = computed((): CSSProperties => {
  const { height } = props;
  return {
    backgroundColor: 'hsl(var(--nav-shell-surface))',
    backgroundImage: 'none',
    backdropFilter: 'none',
    boxShadow: 'none',
    height: `${height}px`,
  };
});
</script>

<template>
  <section
    :style="style"
    class="relative flex w-full overflow-hidden transition-all"
  >
    <div class="relative z-10 flex w-full">
      <slot></slot>
    </div>
  </section>
</template>
