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

<script>
import Card from '@inside-users/components/lib/Card'

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

export default {
  name: 'UserCard',
  components: { Card },
  methods: {
    getAttrs,
    cardOverrides(data, { replaceItem }) {
      replaceItem('phone', {
        id: 'mobile_phone',
        value: data.mobile_phone,
        class: 'item phone'
      })
    }
  }
}
</script>
