import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
export const SearchResultCounter = ({ isSearching, activeIndex, totalResults, }) => {
    if (isSearching) {
        return (_jsx("div", { className: "h-4 w-6 animate-pulse rounded-sm bg-gray-200 dark:bg-gray-800" }));
    }
    return (_jsx("div", { className: "text-xs", children: totalResults > 0 ? (_jsxs(_Fragment, { children: [_jsx("span", { className: "text-gray-700 dark:text-gray-50", children: activeIndex + 1 }), _jsxs("span", { className: "text-gray-500 dark:text-gray-700", children: ["/", totalResults] })] })) : (_jsx("span", { className: "text-gray-500 dark:text-gray-700", children: "0/0" })) }));
};
//# sourceMappingURL=search-result-counter.js.map