import { jsx as _jsx } from "react/jsx-runtime";
import { useMemo } from "react";
import { cn } from "../utils/css";
export const TabIndicator = ({ left = 0, width = 40, className })=>{
    const cssTransform = useMemo(()=>{
        return {
            transform: `translateX(${left}px)`,
            width: `${width}px`
        };
    }, [
        left,
        width
    ]);
    return /*#__PURE__*/ _jsx("div", {
        className: cn("orderly-absolute orderly-bottom-0 orderly-left-0 orderly-h-[3px] desktop:orderly-h-[2px] orderly-bg-base-contrast orderly-transition-transform", className),
        style: cssTransform
    });
};

//# sourceMappingURL=indicator.js.map