2026-01-15 23:37:50 -05:00
|
|
|
import Icon from "../Icon";
|
2025-08-01 14:58:30 -07:00
|
|
|
import PropTypes from "prop-types";
|
|
|
|
|
|
|
|
|
|
const ArrowLeft = ({ type, color = "#667085", ...props }) => {
|
|
|
|
|
if (type === "double") {
|
|
|
|
|
return (
|
2026-01-15 23:37:50 -05:00
|
|
|
<Icon
|
|
|
|
|
name="ChevronsLeft"
|
|
|
|
|
color={color}
|
2025-08-01 14:58:30 -07:00
|
|
|
{...props}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
} else if (type === "long") {
|
|
|
|
|
return (
|
2026-01-15 23:37:50 -05:00
|
|
|
<Icon
|
|
|
|
|
name="ArrowLeft"
|
|
|
|
|
color={color}
|
2025-08-01 14:58:30 -07:00
|
|
|
{...props}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
return (
|
2026-01-15 23:37:50 -05:00
|
|
|
<Icon
|
|
|
|
|
name="ChevronLeft"
|
|
|
|
|
color={color}
|
2025-08-01 14:58:30 -07:00
|
|
|
{...props}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ArrowLeft.propTypes = {
|
|
|
|
|
color: PropTypes.string,
|
|
|
|
|
type: PropTypes.oneOf(["double", "long", "default"]),
|
|
|
|
|
};
|
|
|
|
|
export default ArrowLeft;
|