import { QuickCaptureApp } from "$components/QuickCapture";
import { Route, Router, Switch, useLocation } from "wouter";
import { useHashLocation } from "wouter/use-hash-location";
import App from "./App";
const NotFoundRoute = () => (
Route not found.
);
const AppShellRoute = () => {
const [location] = useLocation();
if (location === "/" || location === "/settings" || location === "/diagnostics") {
return ;
}
return ;
};
export const AppRouter = () => (
);
export function applyInitialRoute(windowLabel: string): void {
const targetHash = windowLabel === "quick_capture" ? "#/quick-capture" : "#/";
if (!globalThis.location.hash || windowLabel === "quick_capture") {
globalThis.history.replaceState(null, "", targetHash);
}
}