import type { FeedViewType } from "@follow/constants" import type { FC, PropsWithChildren } from "react" import { ContextMenu } from "@/src/components/ui/context-menu" import { unreadSyncService } from "@/src/store/unread/store" export const TimelineViewSelectorContextMenu: FC< PropsWithChildren<{ type: string | undefined; viewId: FeedViewType | undefined }> > = ({ children, type, viewId }) => { if (type !== "view" || viewId === undefined) return children return ( {children} { unreadSyncService.markViewAsRead(viewId) }} > Mark as Read ) }