<template>
  <div class="bill-page-shell" :class="shellClass" :style="shellStyle">
    <div class="bill-page-shell__content" :class="contentClass">
      <slot />
    </div>
  </div>
</template>

<script>
const BILL_DEFAULT_BOTTOM_SAFE_SPACE = 30

export default {
  name: 'BillPageShell',
  props: {
    bottomSafeSpace: {
      type: Number,
      default: BILL_DEFAULT_BOTTOM_SAFE_SPACE
    },
    shellClass: {
      type: [String, Array, Object],
      default: ''
    },
    contentClass: {
      type: [String, Array, Object],
      default: ''
    }
  },
  computed: {
    shellStyle() {
      return {
        paddingBottom: `${this.bottomSafeSpace}px`
      }
    }
  }
}
</script>

<style scoped lang="scss">
@use '@/styles/bill-tokens.scss' as *;

.bill-page-shell {
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.bill-page-shell__content {
  width: 100%;
  color: $bill-text-primary;
}
</style>
