'use strict'; const HookAdapter = ({ hook, parameters, children }) => { const hookResult = hook(...(parameters ?? [])); return children(hookResult); }; exports.HookAdapter = HookAdapter;