UNPKG
@atlas-kitchen/adyen-web
Version:
latest (6.15.0)
6.15.0
docs.adyen.com/checkout
atlas-kitchen/adyen-web
@atlas-kitchen/adyen-web
/
dist
/
es-legacy
/
utils
/
useAutoFocus.js
3 lines
(2 loc)
•
245 B
JavaScript
View Raw
1
2
3
import
{useRef
as
s,useEffect
as
e}
from
"../external/preact/hooks/dist/hooks.js"
;
const
o
=(
)=>{
const
o=
s
(
null
);
return
e
((
()=>
{
var
s;
null
===(s=o.
current
)||
void
0
===s||s.
focus
()}),[]),o};
export
{o
as
default
};
//# sourceMappingURL=useAutoFocus.js.map