import db from "@/lib/db"; import Link from "next/link"; import { Card, CardHeader, CardContent } from "@/components/ui/Card"; import Button from "@/components/ui/Button"; import Badge from "@/components/ui/Badge"; import PageContainer from "@/components/ui/PageContainer"; import PageHeader from "@/components/ui/PageHeader"; export default function TaskTemplatesPage() { const templates = db .prepare( ` SELECT * FROM tasks WHERE is_standard = 1 ORDER BY name ASC ` ) .all(); return ( } /> {templates.length === 0 ? (

No task templates yet

Create reusable task templates to streamline your workflow

) : (
{templates.map((template) => (

{template.name}

{template.max_wait_days} days
{template.description && (

{template.description}

)}{" "}
))}{" "}
)}
); }