// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import type { ReactNode } from 'react'; import React from 'react'; import type { LocalizerType } from '../../types/Util'; const CLASS_NAME = 'module-TimelineWarning'; const ICON_CONTAINER_CLASS_NAME = `${CLASS_NAME}__icon-container`; const GENERIC_ICON_CLASS_NAME = `${CLASS_NAME}__generic-icon`; const TEXT_CLASS_NAME = `${CLASS_NAME}__text`; const LINK_CLASS_NAME = `${TEXT_CLASS_NAME}__link`; const CLOSE_BUTTON_CLASS_NAME = `${CLASS_NAME}__close-button`; type PropsType = { children: ReactNode; i18n: LocalizerType; onClose: () => void; }; export function TimelineWarning({ children, i18n, onClose, }: Readonly): JSX.Element { return (
{children}
); } function IconContainer({ children, }: Readonly<{ children: ReactNode }>): JSX.Element { return
{children}
; } TimelineWarning.IconContainer = IconContainer; function GenericIcon() { return
; } TimelineWarning.GenericIcon = GenericIcon; function Text({ children }: Readonly<{ children: ReactNode }>): JSX.Element { return
{children}
; } TimelineWarning.Text = Text; type LinkProps = { children: ReactNode; onClick: () => void; }; function Link({ children, onClick }: Readonly): JSX.Element { return ( ); } TimelineWarning.Link = Link;