Voice notes drafts
This commit is contained in:
parent
356fb301e1
commit
99015d7b96
48 changed files with 2113 additions and 909 deletions
42
ts/components/RecordingComposer.tsx
Normal file
42
ts/components/RecordingComposer.tsx
Normal file
|
@ -0,0 +1,42 @@
|
|||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
import type { LocalizerType } from '../types/I18N';
|
||||
import { Button, ButtonSize, ButtonVariant } from './Button';
|
||||
|
||||
type Props = {
|
||||
i18n: LocalizerType;
|
||||
children: ReactNode;
|
||||
onCancel: () => void;
|
||||
onSend: () => void;
|
||||
};
|
||||
|
||||
export function RecordingComposer({
|
||||
i18n,
|
||||
onCancel,
|
||||
onSend,
|
||||
children,
|
||||
}: Props): JSX.Element {
|
||||
return (
|
||||
<div className="RecordingComposer">
|
||||
<div className="RecordingComposer__content">{children}</div>
|
||||
<Button
|
||||
className="RecordingComposer__button"
|
||||
onClick={onCancel}
|
||||
size={ButtonSize.Medium}
|
||||
variant={ButtonVariant.Secondary}
|
||||
>
|
||||
{i18n('icu:RecordingComposer__cancel')}
|
||||
</Button>
|
||||
<Button
|
||||
className="RecordingComposer__button"
|
||||
onClick={onSend}
|
||||
size={ButtonSize.Medium}
|
||||
>
|
||||
{i18n('icu:RecordingComposer__send')}
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue