2019-10-29 07:20:54 +00:00
|
|
|
<template>
|
2022-01-12 10:55:27 +00:00
|
|
|
<header class="header-expanded bg-white py-6 px-5 relative box-border w-full">
|
2021-09-05 19:44:17 +00:00
|
|
|
<div
|
|
|
|
class="flex items-start"
|
|
|
|
:class="[avatarUrl ? 'justify-between' : 'justify-end']"
|
|
|
|
>
|
2022-01-12 10:55:27 +00:00
|
|
|
<img v-if="avatarUrl" class="h-12 rounded-full" :src="avatarUrl" />
|
2020-08-28 12:09:46 +00:00
|
|
|
<header-actions :show-popout-button="showPopoutButton" />
|
|
|
|
</div>
|
2020-10-18 18:02:22 +00:00
|
|
|
<h2
|
2022-01-12 10:55:27 +00:00
|
|
|
class="text-slate-900 mt-5 text-3xl mb-3 font-normal"
|
2020-10-18 18:02:22 +00:00
|
|
|
v-html="introHeading"
|
|
|
|
/>
|
|
|
|
<p class="text-lg text-black-700 leading-normal" v-html="introBody" />
|
2019-10-29 07:20:54 +00:00
|
|
|
</header>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-11-25 18:40:27 +00:00
|
|
|
import { mapGetters } from 'vuex';
|
2020-08-28 12:09:46 +00:00
|
|
|
import HeaderActions from './HeaderActions';
|
2019-10-29 07:20:54 +00:00
|
|
|
export default {
|
|
|
|
name: 'ChatHeaderExpanded',
|
2020-08-28 12:09:46 +00:00
|
|
|
components: {
|
|
|
|
HeaderActions,
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
props: {
|
2020-04-20 06:25:06 +00:00
|
|
|
avatarUrl: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
introHeading: {
|
|
|
|
type: String,
|
2020-04-20 06:25:06 +00:00
|
|
|
default: '',
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
|
|
|
introBody: {
|
|
|
|
type: String,
|
2020-04-20 06:25:06 +00:00
|
|
|
default: '',
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
2020-08-28 12:09:46 +00:00
|
|
|
showPopoutButton: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
2020-04-19 18:10:28 +00:00
|
|
|
computed: {
|
|
|
|
...mapGetters({
|
|
|
|
widgetColor: 'appConfig/getWidgetColor',
|
|
|
|
}),
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
};
|
|
|
|
</script>
|