writekit/frontends/studio/src/stores/analytics.ts
Josh bef5dd4437 refactor: move studio to frontends workspace
- Move studio from root to frontends/studio/
- Add owner-tools frontend for live blog admin UI
- Add shared ui component library
- Set up npm workspaces for frontends
- Add enhanced code block extension for editor

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 02:06:19 +02:00

10 lines
272 B
TypeScript

import { atom } from 'nanostores'
import { createFetcherStore } from './fetcher'
import type { AnalyticsSummary } from '../types'
export const $days = atom(30)
export const $analytics = createFetcherStore<AnalyticsSummary>([
'/api/studio/analytics?days=',
$days,
])