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

11 lines
581 B
TypeScript

// Metro module 12854 (f12855).
import CallStore from "../../../../stores/CallStore";
import { useStateFromStores } from "../../../../_bundle/Module589";
import SnowflakeUtils from "../../../../utils/SnowflakeUtils";
import Timer from "./Timer";
export default function OnGoingCallTimer(props) {
const { style, channelId } = props;
const stateFromStores = useStateFromStores([CallStore], () => CallStore.getCall(channelId)?.messageId, [channelId]);
return <Timer style={style} timestamp={stateFromStores != null ? SnowflakeUtils.extractTimestamp(stateFromStores) : 0} />;
};