import { useState } from 'react'; import type { MediaLibraryAsset } from '../../../../../packages/api-contracts/src/index.js'; import { Modal } from '../../components/modal.js'; interface MediaShareConfirmationDialogProps { asset: MediaLibraryAsset; /** Whether the operator already revealed the saved images in the composer. */ areImagesRevealed: boolean; isPending: boolean; onCancel(): void; onConfirm(): void; } export function MediaShareConfirmationDialog({ asset, areImagesRevealed, isPending, onCancel, onConfirm }: MediaShareConfirmationDialogProps) { const [isRevealed, setIsRevealed] = useState(areImagesRevealed); return ( Confirm image

Share this saved image?

This sends immediately through Reddit chat, then asks them to reciprocate without pressure.

{`Saved
); }