import { Popover } from "@kobalte/core/popover"; import { type Component, For, Show } from "solid-js"; import { base } from "../network"; import { useNotifications } from "../ProtectedRoute"; const LoadingCircle: Component<{ status: "loading" | "complete"; class?: string; }> = (props) => { switch (props.status) { case "loading": return ( ); case "complete": return ( ); } }; export const ProcessingImages: Component = () => { const notifications = useNotifications(); const processingNumber = () => Object.keys(notifications.state.ProcessingImages).length; return ( 0}> 0} fallback={

No images to process

} >

Processing {processingNumber()}{" "} {processingNumber() === 1 ? "image" : "images"}

} >
{([id, _image]) => ( {(image) => (
processing

{image().ImageName}

)}
)}
); };