1export { theme } from "../tags/question-layout.marko";
2export interface Input {
3 admin?: boolean;
4}
5export const meta: Metadata = {
6 title: "paper clover q+a",
7 description: "ask clover a question",
8};
9export const regenerate = {
10 tags: ["q+a", "q+a inbox"],
11};
12
13<const/inboxSize=[...PendingQuestion.getAll()].length>
14<if=(inboxSize > 0)>
15 <p>
16 <strong style={ color: "#ff4b4b" }>
17 notice: ${inboxSize} items in <a href="/admin/q+a/inbox">inbox</a>!
18 </strong>
19 </p>
20</if>
21
22<MainPage admin/>
23
24import MainPage from "./q+a.marko";
25import { PendingQuestion } from "#src/q+a/models/PendingQuestion.ts";