elk/composables/status.ts

4 lines
234 B
TypeScript
Raw Normal View History

2023-01-08 09:21:09 +03:00
import type { mastodon } from 'masto'
2023-01-08 09:21:09 +03:00
export const navigateToStatus = ({ status, focusReply = false }: { status: mastodon.v1.Status; focusReply?: boolean }) => navigateTo({ path: getStatusRoute(status).href, state: { focusReply } })