<template>
    <div class="info-block" :class='direction'>
        <div class="Label"><v-icon v-if="icon">WMi-{{icon}}</v-icon> {{ label }}  </div>
        <div class="Value" :class='valueClass' v-html="value"></div>
    </div>
</template>

<script>
export default {
    props: {
        icon:           String,
        label:          { default: " عنوان " },
        value:          { default: "" },
        direction:      { default: '' },
        valueClass:      { default: '' },
    },
};
</script>
<style lang="scss" scoped>
    .info-block {
        text-align: right;
        padding: 5px 10px 10px 10px;
        margin: 0px 2px 10px;
        border-right: 1px solid #dcdcdc;
    }
    .info-block.LTR {
        text-align: left;
        direction: ltr;
        font-family: 'Montserrat-Regular' !important;
        border-right: 0px;
        border-left: 1px solid #dcdcdc;
    }
    .info-block .Label {
        color: #797979;
        font-size: 12px;
    }
    .info-block:not(.LTR) .Value {
        color: #000;
        font-size: 16px;
        font-family: 'iranyekan-regular';
    }
    .info-block .v-icon {
        margin-top: -5px;
        line-height: 1.6;
        font-size: 14px;
    }
</style>
