module SvelteOnRails::ViewHelpers
def render_component(support)
def render_component(support) if support.ssr? ssr_result = support.render_ssr content_tag(:div, support.html_options) do concat(content_tag(:style, ssr_result['css'], type: 'text/css')) concat(ssr_result['html'].html_safe) end else content_tag(:div, support.html_options) {} end end