import React from "react";
import { FinsembleToggle } from "../../../common/FinsembleToggle";
export default function DashbarEditorItem({ index, title, enabled, url, width, buttonAction, id, }) {
    return (React.createElement("tr", { id: id, key: index, className: "dashbar-preferences-item" },
        React.createElement("td", { id: `${title}-toggle` },
            React.createElement(FinsembleToggle, { checked: enabled, onChange: buttonAction })),
        React.createElement("td", null, title),
        React.createElement("td", { title: url }, url),
        React.createElement("td", null, width ? width : "")));
}
//# sourceMappingURL=DashbarEditorItem.js.map