import React from "react"; import { ReactComponent as ArrowDown } from "@webiny/icons/keyboard_arrow_up.svg"; import { Icon } from "~/Icon/index.js"; import { cn, cva, type VariantProps } from "~/utils.js"; const directionVariants = cva("inline", { variants: { direction: { asc: "rotate-0", desc: "rotate-180" } } }); interface DirectionProps extends React.HTMLAttributes, VariantProps {} const Direction = ({ className, direction }: DirectionProps) => { if (!direction) { return null; } return ( } label={"Sort column"} color={"neutral-strong"} /> ); }; export { Direction, type DirectionProps };