import type { Post } from "./types"; // @ts-ignore, doesn't matter. import content from "@/client/editor/default.md" with {type: "text"}; export const template = { content: "", title: "", } as Post; /** * Fills in a template post. Includes UUID. All you've got to do is provide the Blog's ID. * @param blog_id Blog's ID. * @returns {Post} The post. */ export function post_template(blog_id: number): Post { return { ...template, blog_id, uuid: Bun.randomUUIDv7(), } as Post; }