mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
28 lines
444 B
Vue
28 lines
444 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>
|