"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _utils = require("../utils");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var TrackHighlight = _styledComponents.default.div.withConfig({
  displayName: "SliderTrackHighlight__TrackHighlight",
  componentId: "sc-p47ej5-0"
})(["width:100%;border-radius:inherit;background:", ";height:", ";"], function (p) {
  return p.$sliderColor ? p.$sliderColor(p.theme) : p.theme.color.sliderColor;
}, function (p) {
  return "".concat((0, _utils.getHeight)(p.$variant), "px");
});
var SliderTrackHighlight = function SliderTrackHighlight(_ref) {
  var sliderColor = _ref.sliderColor,
    value = _ref.value,
    variant = _ref.variant;
  return _react.default.createElement(TrackHighlight, {
    $sliderColor: sliderColor,
    style: {
      width: "".concat(value, "%")
    },
    $variant: variant
  });
};
var _default = exports.default = SliderTrackHighlight;