mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 00:18:27 +00:00
# Checklist for submitter If some of the following don't apply, delete the relevant line. - [ ] Manual QA for all new/changed functionality --------- Co-authored-by: Gabriel Hernandez <ghernandez345@gmail.com>
33 lines
691 B
TypeScript
33 lines
691 B
TypeScript
import React from "react";
|
|
import { COLORS, Colors } from "styles/var/colors";
|
|
import { ICON_SIZES, IconSizes } from "styles/var/icon_sizes";
|
|
|
|
interface IChevronProps {
|
|
color?: Colors;
|
|
size?: IconSizes;
|
|
}
|
|
|
|
const ChevronDown = ({
|
|
color = "core-fleet-black",
|
|
size = "medium",
|
|
}: IChevronProps) => {
|
|
return (
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width={ICON_SIZES[size]}
|
|
height={ICON_SIZES[size]}
|
|
fill="none"
|
|
viewBox="0 0 16 16"
|
|
>
|
|
<path
|
|
stroke={COLORS[color]}
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
strokeWidth="2"
|
|
d="M12 6l-4 4-4-4"
|
|
/>
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
export default ChevronDown;
|