mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Vue
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Vue
		
	
	
		
			Executable File
		
	
	
	
	
<template>
 | 
						|
  <header
 | 
						|
    class="header-expanded py-6 px-5 relative box-border w-full"
 | 
						|
    :class="$dm('bg-white', 'dark:bg-slate-900')"
 | 
						|
  >
 | 
						|
    <div
 | 
						|
      class="flex items-start"
 | 
						|
      :class="[avatarUrl ? 'justify-between' : 'justify-end']"
 | 
						|
    >
 | 
						|
      <img v-if="avatarUrl" class="h-12 rounded-full" :src="avatarUrl" />
 | 
						|
      <header-actions :show-popout-button="showPopoutButton" />
 | 
						|
    </div>
 | 
						|
    <h2
 | 
						|
      v-dompurify-html="introHeading"
 | 
						|
      class="mt-5 text-3xl mb-3 font-normal"
 | 
						|
      :class="$dm('text-slate-900', 'dark:text-slate-50')"
 | 
						|
    />
 | 
						|
    <p
 | 
						|
      v-dompurify-html="introBody"
 | 
						|
      class="text-lg leading-normal"
 | 
						|
      :class="$dm('text-slate-700', 'dark:text-slate-200')"
 | 
						|
    />
 | 
						|
  </header>
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
import { mapGetters } from 'vuex';
 | 
						|
import HeaderActions from './HeaderActions';
 | 
						|
import darkModeMixin from 'widget/mixins/darkModeMixin.js';
 | 
						|
 | 
						|
export default {
 | 
						|
  name: 'ChatHeaderExpanded',
 | 
						|
  components: {
 | 
						|
    HeaderActions,
 | 
						|
  },
 | 
						|
  mixins: [darkModeMixin],
 | 
						|
  props: {
 | 
						|
    avatarUrl: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
    introHeading: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
    introBody: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
    showPopoutButton: {
 | 
						|
      type: Boolean,
 | 
						|
      default: false,
 | 
						|
    },
 | 
						|
  },
 | 
						|
  computed: {
 | 
						|
    ...mapGetters({
 | 
						|
      widgetColor: 'appConfig/getWidgetColor',
 | 
						|
    }),
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 |