nonworking indicator, sort broken

This commit is contained in:
2026-02-19 17:52:57 -05:00
parent 1c65c85d02
commit d1e1dd28b4
6 changed files with 116 additions and 41 deletions

View File

@@ -0,0 +1,36 @@
/**
* Loading indicator component
* Displays an animated sliding bar at the top of the screen
*/
import { For } from "solid-js";
import { useTheme } from "@/context/ThemeContext";
interface LoadingIndicatorProps {
isLoading: boolean;
}
export function LoadingIndicator(props: LoadingIndicatorProps) {
const { theme } = useTheme();
if (!props.isLoading) return null;
return (
<box
flexDirection="row"
width="100%"
height={1}
backgroundColor={theme.background}
>
<For each={Array.from({ length: 10 })}>
{(_, index) => (
<box
width={2}
backgroundColor={theme.primary}
style={{ opacity: 0.1 + index() * 0.1 }}
/>
)}
</For>
</box>
);
}