Files
Checkmate/client/src/Components/v1/ArrowLeft/index.jsx
T

36 lines
596 B
React
Raw Normal View History

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 (
<Icon
name="ChevronsLeft"
color={color}
2025-08-01 14:58:30 -07:00
{...props}
/>
);
} else if (type === "long") {
return (
<Icon
name="ArrowLeft"
color={color}
2025-08-01 14:58:30 -07:00
{...props}
/>
);
} else {
return (
<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;