elk/composables/status.ts

4 wiersze
234 B
TypeScript

import type { mastodon } from 'masto'
export const navigateToStatus = ({ status, focusReply = false }: { status: mastodon.v1.Status; focusReply?: boolean }) => navigateTo({ path: getStatusRoute(status).href, state: { focusReply } })