<template>
  <v-container :fluid="true" class="container">
    <v-row>
      <v-col cols="12" sm="6">
        <UiInputText
          v-model="entity.label"
          field="label"
          type="string"
          :rules="getAsserts('label')"
        />
      </v-col>
    </v-row>
  </v-container>
</template>

<script setup lang="ts">
import ResidenceArea from '~/models/Billing/ResidenceArea'
import { getAssertUtils } from '~/services/asserts/getAssertUtils'

defineProps<{
  entity: ResidenceArea
}>()

const getAsserts = (key) => getAssertUtils(ResidenceArea.getAsserts(), key)
</script>
