grain.social is a photo sharing platform built on atproto.
1import { BffContext, RouteHandler } from "@bigmoves/bff";
2import { CopyrightPolicy, PrivacyPolicy, Terms } from "../legal.tsx";
3import type { State } from "../state.ts";
4
5export const termsHandler: RouteHandler = (
6 _req,
7 _params,
8 ctx: BffContext<State>,
9) => {
10 ctx.state.meta = [{ title: "Terms — Grain" }];
11 return ctx.render(
12 <Terms />,
13 );
14};
15
16export const privacyHandler: RouteHandler = (
17 _req,
18 _params,
19 ctx: BffContext<State>,
20) => {
21 ctx.state.meta = [{ title: "Privacy Policy — Grain" }];
22 return ctx.render(
23 <PrivacyPolicy />,
24 );
25};
26
27export const copyrightHandler: RouteHandler = (
28 _req,
29 _params,
30 ctx: BffContext<State>,
31) => {
32 ctx.state.meta = [{ title: "Copyright Policy — Grain" }];
33 return ctx.render(
34 <CopyrightPolicy />,
35 );
36};