<template>
  <Card v-bind="getAttrs($attrs)" :scaffold-overrides="cardOverrides" />
</template>

<script>
import { getAttrs } from '@inside-library/helpers/Attrs'

import Card from '@inside-users/components/lib/Card'

export default {
  name: 'UserCard',
  components: { Card },
  methods: {
    getAttrs,
    cardOverrides(data, { addItemBefore }) {
      addItemBefore('function', {
        id: 'usersStatus',
        value: this.getCheckedData(data, ['users_status', 'title'])
      })
    }
  }
}
</script>
