-module(sprocket@component). -compile([no_auto_import, nowarn_unused_vars]). -export([component/2, render/2]). -spec component( fun((sprocket@socket:socket(), JZU) -> {sprocket@socket:socket(), list(sprocket@element:element())}), JZU ) -> sprocket@element:element(). component(C, Props) -> Component = begin _pipe = C, _pipe@1 = gleam@dynamic:from(_pipe), gleam@dynamic:unsafe_coerce(_pipe@1) end, Props@1 = begin _pipe@2 = Props, gleam@dynamic:from(_pipe@2) end, {component, Component, Props@1}. -spec render(sprocket@socket:socket(), list(sprocket@element:element())) -> {sprocket@socket:socket(), list(sprocket@element:element())}. render(Socket, Elements) -> {Socket, Elements}.