Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { sortDirection } = this;
if (sortDirection) {
const sortIcon =
sortDirection === TABLE_SORT_DIRECTION.NONE
? Arrows16({
class: `${prefix}--table-sort__icon-unsorted`,
})
: ArrowDown16({
class: `${prefix}--table-sort__icon`,
});
return html`
<button title="${this.textContent}" class="${prefix}--table-sort">
<span class="${prefix}--table-header-label"></span>
${sortIcon}
</button>
`;
}
return html`
`;
}