1export interface Input {
2 admin?: boolean;
3}
4
5export { theme } from "../tags/question-layout.marko";
6export const meta: Metadata = {
7 title: "paper clover q+a",
8 description: "ask clover a question",
9};
10
11<const/{ admin = false }=input>
12<const/answered=questions.getAll()>
13
14<question-layout>
15 <if=!admin>
16 <question-form/>
17 </if>
18 <for|question| of=answered>
19 <question ...{ question, admin }/>
20 </for>
21 <footer>fun fact: clover has answered ${answered.length} questions</footer>
22</question-layout>
23
24import * as questions from "#src/q+a/models/questions.ts";