import { A } from "@solidjs/router"; import { Errored, Loading, type ParentProps, Show } from "solid-js"; import { btnGhost, btnPrimary } from "./lib/ui"; import { colorScheme, toggleColorScheme } from "./stores/theme"; function navLink(active?: boolean) { return `rounded-lg px-3 py-1.5 text-sm font-medium transition-colors hover:bg-stone-200 dark:hover:bg-stone-800 ${ active ? "text-teal-600 dark:text-teal-400" : "text-stone-600 dark:text-stone-300" }`; } function ErrorScreen(props: { error: () => unknown; reset: () => void }) { const message = () => { const error = props.error(); return error instanceof Error ? error.message : String(error); }; return (

Something went wrong

The local database could not be opened. This usually means Flashcut is already open in another tab — the database can only be used by one tab at a time.

{message()}

); } export default function App(props: ParentProps) { return (
Flashcut
}> Loading…

}> {props.children}
); }