<template>
    <account-role 
        :role="role"
        :app="app"
        :form="column.form"
    />
</template>

<script>
    export default {
        props: {
            cellContent: {required: true},
            app: {default: null},
            column: {required: true},
        },

        computed: {
            account() {
                return this.cellContent;
            },

            role() {
                if( _.has(this.account, 'role') )
                {
                    return this.account.role;
                }
                return this.cellContent.user.role;
            }
        },

        name: 'DtCellAccountRole',
    }
</script>