signal-desktop/ts/components/conversation/TimelineWarnings.tsx

22 lines
489 B
TypeScript
Raw Normal View History

2022-03-09 22:44:57 +00:00
// Copyright 2021 Signal Messenger, LLC
2021-04-21 16:31:12 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
2022-03-09 22:44:57 +00:00
import type { ReactNode } from 'react';
import React, { forwardRef } from 'react';
2021-04-21 16:31:12 +00:00
const CLASS_NAME = 'module-TimelineWarnings';
2022-03-09 22:44:57 +00:00
type PropsType = {
children: ReactNode;
};
export const TimelineWarnings = forwardRef<HTMLDivElement, PropsType>(
2022-11-18 00:45:19 +00:00
function TimelineWarningsInner({ children }, ref) {
return (
<div className={CLASS_NAME} ref={ref}>
{children}
</div>
);
}
2021-04-21 16:31:12 +00:00
);