mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 23:04:57 +00:00
27 lines
530 B
Lua
27 lines
530 B
Lua
-- Render comments section
|
|
-- Single function module for comments UI
|
|
|
|
require("comments.types")
|
|
|
|
local composer = require("comments.composer")
|
|
local list = require("comments.list")
|
|
|
|
---@class Render
|
|
local M = {}
|
|
|
|
---Render full comments section
|
|
---@param ctx RenderContext Context with comments array
|
|
---@return UIComponent
|
|
function M.render(ctx)
|
|
return {
|
|
type = "Stack",
|
|
props = { spacing = 4 },
|
|
children = {
|
|
composer.composer(),
|
|
list.list(ctx.comments or {})
|
|
}
|
|
}
|
|
end
|
|
|
|
return M
|