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