// Copyright 2024 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import type { ConversationType } from '../state/ducks/conversations.preload.js'; import type { LocalizerType } from '../types/I18N.std.js'; import { Button, ButtonVariant } from './Button.dom.js'; import { Modal } from './Modal.dom.js'; import { Linkify } from './conversation/Linkify.dom.js'; import type { RenderTextCallbackType } from '../types/Util.std.js'; import { Emojify } from './conversation/Emojify.dom.js'; export type NotePreviewModalProps = Readonly<{ conversation: ConversationType; i18n: LocalizerType; onClose: () => void; onEdit: () => void; }>; const renderNonLink: RenderTextCallbackType = ({ key, text }) => { return ; }; export function NotePreviewModal({ conversation, i18n, onClose, onEdit, }: NotePreviewModalProps): JSX.Element { return ( } >
); }