11 lines
581 B
TypeScript
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} />;
|
|
};
|