Something went wrong. Try again.
Blog Built with AT Protocol skiddle.id
Something went wrong. Try again.
12345678910111213141516171819202122import type { WhtwndBlogEntryRecord, WhtwndBlogEntryView } from "../types";import { uriToRkey } from "./uriToRkey";
export const whtwndBlogEntryRecordToView = ({ uri, cid, value,}: { uri: string; cid: string; value: WhtwndBlogEntryRecord;}): WhtwndBlogEntryView => { return { rkey: uriToRkey(uri), cid, title: value.title, content: value.content, createdAt: value.createdAt, banner: value.ogp?.url ?? undefined, };};