import { type Component, For } from "solid-js";
import { ThemeToggle } from "../components/ThemeToggle";
import { store, restoreTask, deleteTaskPermanently, setMatrixScaleDays } from "@/store";
import { Trash2, Undo2, ArrowLeftRight } from "lucide-solid";
import { Button } from "@/components/ui/button";
import { toast } from "solid-sonner";
import { Select, SelectContent, SelectItem, SelectTrigger } from "@/components/ui/select";
import { pb } from "@/lib/pocketbase";
export const SettingsView: Component = () => {
return (
Appearance
Select your preferred color scheme.
{/* Matrix Configuration */}
Matrix Horizon
Adjust the time scale for your strategy grid.
Trash
Items are permanently deleted after 7 days.
t.deletedAt)} fallback={
Trash is empty.
}>
{(task) => {
const daysLeft = Math.ceil(((task.deletedAt || 0) + (7 * 24 * 60 * 60 * 1000) - Date.now()) / (1000 * 60 * 60 * 24));
return (
{task.title || "Untitled"}
Expires in {Math.max(0, daysLeft)} days
);
}}
);
};