mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-27 07:14:56 +00:00
24 lines
526 B
Lua
24 lines
526 B
Lua
-- Comment composer component
|
|
-- Single function module for comments UI
|
|
|
|
require("comments.types")
|
|
|
|
---@class Composer
|
|
local M = {}
|
|
|
|
---Render comment composer form
|
|
---@return UIComponent
|
|
function M.composer()
|
|
return {
|
|
type = "Card",
|
|
children = {
|
|
{ type = "CardContent", children = {
|
|
{ type = "TextArea", props = { name = "comment", placeholder = "Write a comment..." } },
|
|
{ type = "Button", props = { text = "Post", onClick = "postComment" } }
|
|
}}
|
|
}
|
|
}
|
|
end
|
|
|
|
return M
|