/**
* A link alone on its line: one 36px row for every kind. Hovering it shows its
* card; a tap opens it. Loading draws the row in bars; not available says so
* in one line of the same height.
*/
import { Avatar } from './Avatar'
import { AvatarGroup } from './AvatarGroup'
import { Card } from './Card'
import { Link } from './Link'
import { chosenOf, type LinkedKind, type LinkState } from './linked'
import { CommentCount, LinkedIcon, LinkKey, ProgressRing, StatusMark } from './LinkParts'
import { LinkPreview } from './LinkPreview'
import { SkeletonBar } from './Skeleton'
export interface LinkUnavailableProps {
kind: LinkedKind
/** What it is, in a word: "Item". Drawn as "Item — not available.". */
noun: string
/** Where it may still open, for someone who can: its app and address. */
openIn?: { app: string; href: string }
}
/**
* Not available: deleted, or not this reader's to see, which read the same.
* One line at a row's height, whether a row or a card was to draw. The way
* out stays, since the app it lives in may still open it for you.
*/
export function LinkUnavailable({ kind, noun, openIn }: LinkUnavailableProps) {
return (