/*!
 * Built by Revolist OU ❤️
 */
import { h } from "@stencil/core";
/**
 * Renders sorting direction and optional additive sorting rank.
 */
export const SortingSign = ({ column }) => {
    var _a;
    const indicatorAttrs = { class: 'sort-indicator' };
    const iconAttrs = { class: (_a = column === null || column === void 0 ? void 0 : column.order) !== null && _a !== void 0 ? _a : 'sort-off' };
    const orderIndexAttrs = { class: 'sort-order-index' };
    return (h("span", Object.assign({}, indicatorAttrs), h("i", Object.assign({}, iconAttrs)), (column === null || column === void 0 ? void 0 : column.sortIndex) ? (h("sup", Object.assign({}, orderIndexAttrs), column.sortIndex)) : null));
};
