mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			432 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			432 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <div
 | 
						|
    :class="`status-badge status-badge__${status} rounded-full w-2.5 h-2.5 mr-0.5 rtl:mr-0 rtl:ml-0.5 inline-flex`"
 | 
						|
  />
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
export default {
 | 
						|
  props: {
 | 
						|
    status: { type: String, default: '' },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 | 
						|
<style lang="scss" scoped>
 | 
						|
.status-badge {
 | 
						|
  &__online {
 | 
						|
    @apply bg-green-400;
 | 
						|
  }
 | 
						|
  &__offline {
 | 
						|
    @apply bg-slate-500;
 | 
						|
  }
 | 
						|
  &__busy {
 | 
						|
    @apply bg-yellow-500;
 | 
						|
  }
 | 
						|
}
 | 
						|
</style>
 |