/** * 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 ( {(_, index) => ( )} ); }