UNPKG

@coji/journal-mcp

Version:

MCP server for journal entries with web viewer

2 lines (1 loc) 856 B
import{w as s}from"./with-props-C5f5Zz1S.js";import{o as t,t as o}from"./chunk-DQRVZFIR-BjeRaiJT.js";import{E as a}from"./entry-card-B52nTnJl.js";function d({params:r}){return[{title:`Journal - ${r.date}`},{name:"description",content:`Journal entry for ${r.date}`}]}const m=s(function({loaderData:n}){const{entry:e}=n;return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:e.date}),t.jsxs("p",{className:"text-gray-600",children:[e.entries_count," ",e.entries_count===1?"entry":"entries"]})]}),t.jsx(o,{to:"/",className:"px-4 py-2 bg-gray-200 text-gray-700 rounded-md hover:bg-gray-300 transition-colors",children:"← Back to Home"})]}),t.jsx(a,{file:e})]})});export{m as default,d as meta};