// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import { times } from 'lodash'; import type { Meta } from '@storybook/react'; import { setupI18n } from '../util/setupI18n'; import enMessages from '../../_locales/en/messages.json'; import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation'; import type { PropsType } from './CallingPreCallInfo'; import { CallingPreCallInfo, RingMode } from './CallingPreCallInfo'; import type { ConversationType } from '../state/ducks/conversations'; import { getPlaceholderContact } from '../state/selectors/conversations'; import { generateAci } from '../types/ServiceId'; import { FAKE_CALL_LINK } from '../test-both/helpers/fakeCallLink'; import { callLinkToConversation } from '../util/callLinks'; const i18n = setupI18n('en', enMessages); const getDefaultGroupConversation = () => getDefaultConversation({ name: 'Tahoe Trip', phoneNumber: undefined, profileName: undefined, title: 'Tahoe Trip', type: 'group', }); const otherMembers = times(6, () => getDefaultConversation()); const getUnknownContact = (): ConversationType => ({ ...getPlaceholderContact(), serviceId: generateAci(), }); export default { title: 'Components/CallingPreCallInfo', } satisfies Meta; export function DirectConversation(): JSX.Element { return ( ); } export function Ring0(): JSX.Element { return ( ); } export function Ring1(): JSX.Element { return ( ); } export function Ring2(): JSX.Element { return ( ); } export function Ring3(): JSX.Element { return ( ); } export function Ring4(): JSX.Element { return ( ); } export function Notify0(): JSX.Element { return ( ); } export function Notify1(): JSX.Element { return ( ); } export function Notify2(): JSX.Element { return ( ); } export function Notify3(): JSX.Element { return ( ); } export function Notify4(): JSX.Element { return ( ); } export function Peek1(): JSX.Element { return ( ); } export function Peek2(): JSX.Element { return ( ); } export function Peek3(): JSX.Element { return ( ); } export function Peek4(): JSX.Element { return ( ); } export function GroupConversationYouOnAnOtherDevice(): JSX.Element { const me = getDefaultConversation(); return ( ); } export function GroupConversationCallIsFull(): JSX.Element { return ( ); } export function CallLinkUnknownContact(): JSX.Element { return ( ); } export function CallLink3UnknownContacts(): JSX.Element { return ( ); } export function CallLink1Known1UnknownContact(): JSX.Element { return ( ); } export function CallLink1Known2UnknownContacts(): JSX.Element { return ( ); }