elk/composables/status.ts
2023-01-07 23:18:15 +01:00

4 lines
220 B
TypeScript

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