Files
discord-decomp/modules/nuf_channels/native/components/NUFVoiceChannelsTemplate.tsx
T
2026-11-01 12:12:55 +02:00

16 lines
842 B
TypeScript

// Metro module 12834 (f12835).
import NUFTemplate from "./NUFTemplate";
import { intl, t } from "../../../../intl/index.native";
import Module12836 from "../../../../_bundle/Module12836";
import NUFChannelsManager from "../NUFChannelsManager";
import { dismissGlobalKeyboard } from "../../../../utils/native/KeyboardManagerUtils";
import SelectedChannelActionCreators from "../../../../actions/SelectedChannelActionCreators";
export default function NUFVoiceChannelsTemplate(props) {
const channel = props.channel;
return <NUFTemplate title={intl.string(t.w5HAll)} description={intl.string(t.Ww4hhq)} imageSrc={Module12836} CTALabel={intl.string(t.eIi3Om)} onCTAPress={() => {
NUFChannelsManager.handleVoiceChannelsOnboard();
dismissGlobalKeyboard();
SelectedChannelActionCreators.selectVoiceChannel(channel.id);
}} />;
};