/* eslint-disable @typescript-eslint/restrict-template-expressions */ import { CollectionItem, Context } from "sealious"; import frame from "../../frame"; export function Task(task: CollectionItem): string { return frame( `task-${task.id}`, /* HTML */ `
  • ${task.get("title")}
  • ` ); } export async function TaskList(context: Context): Promise { const { items: tasks } = await context.app.collections.tasks.list(context).fetch(); return frame( "task-list", /* HTML */ ` ` ); } export function NewTask(): string { return frame( "new-task", /* HTML */ `
    ` ); }