import React from "react";
import sortFunctions from "../utils/sort-functions";
import { onClickA11y } from "../../../../utils";
export default class SortBy extends React.Component {
    constructor(props) {
        super(props);
    }
    renderOptionsList() {
        return Object.keys(sortFunctions).map((option, index) => (React.createElement("span", { key: index, role: "button", "aria-pressed": option === this.props.sortBy, ...onClickA11y(() => this.props.setSortBy(option)), className: "sort-option pointer" }, option)));
    }
    render() {
        return React.createElement("div", { className: "sort" },
            "Sort by: ",
            this.renderOptionsList());
    }
}
//# sourceMappingURL=SortBy.js.map