import { html, noChange, nothing } from "lit";
const placeholder = ()=>html`
  <div
    part="placeholder"
    aria-hidden="true"
    class="bg-neutral mb-4 h-10 w-64 animate-pulse rounded"
  ></div>
`;
const sortGuard = ({ firstSearchExecuted, hasError, hasResults, isLoading }, sortTemplate)=>{
    if (hasError) return nothing;
    if (!firstSearchExecuted) return placeholder();
    if (isLoading) return noChange;
    if (!hasResults) return nothing;
    return sortTemplate();
};
export { sortGuard };
