Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | 50x 50x 33x 50x 21x 29x | import WindowIcon from "../assets/svg/window.js"
import MailIcon from "../assets/svg/mail.js"
import DisconnectIcon from "../assets/svg/disconnect.js"
export default (height) => {
let user;
user = JSON.parse(localStorage.getItem('user'))
if (typeof user === 'string') {
user = JSON.parse(user)
}
if (user && user.type === 'Employee') {
return (
`
<div class='vertical-navbar' style='height: ${height}vh;'>
<div class='layout-title'> Billed </div>
<div id='layout-icon1' data-testid="icon-window">
${WindowIcon}
</div>
<div id='layout-icon2' data-testid="icon-mail">
${MailIcon}
</div>
<div id='layout-disconnect'>
${DisconnectIcon}
</div>
</div>
`
)
} else {
return (
`
<div class='vertical-navbar' style='height: ${height}vh;'>
<div class='layout-title'> Billed </div>
<div id='layout-disconnect' data-testid='layout-disconnect'>
${DisconnectIcon}
</div>
</div>
`
)
}
} |