"use strict";var e=require("react"),r=require("../types.js"),t=require("../utils/time.js"),a={timestamp:0};module.exports=function(i){var m=i.isStatusShown,u=i.currentWellId,s=i.wirelineData,n=i.fracData;return e.useMemo((function(){if(!m||!n||!s)return{};var e=(n||a).timestamp,i=(s||a).timestamp,p=t.getCurrentTimestamp();if(p-e>60&&p-i>60)return{};var c=p-e<=60,l=p-i<=60;if(!c&&!l)return{};var y=r.StreamType.Frac;return y=c!==l?c?r.StreamType.Frac:r.StreamType.Wireline:e<i?r.StreamType.Frac:r.StreamType.Wireline,Math.abs(e-i)<=5&&(y=r.StreamType.Frac),{wellId:u,streamType:y}}),[s,n,m])};
//# sourceMappingURL=useWellStreamsData.js.map
