// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React, { ReactNode, forwardRef } from 'react'; import classNames from 'classnames'; type PropsType = { icon: string; contents: ReactNode; button?: ReactNode; isError?: boolean; }; export const SystemMessage = forwardRef( ({ icon, contents, button, isError }, ref) => { return (
{contents}
{button && (
{button}
)}
); } );