mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-30 16:54:57 +00:00
- Added type annotations and class definitions in the dashboard layout, stats, and data table modules for improved type safety and documentation. - Introduced new classes for UI components, props, and configuration in the form builder, navigation menu, notification center, and UI dialogs packages. - Implemented detailed type definitions for actions, fields, and pagination components to streamline usage and enhance clarity. - Updated initialization functions in multiple packages to include versioning and installation context. - Improved structure and readability of the codebase by organizing and documenting component properties and methods.
32 lines
678 B
Lua
32 lines
678 B
Lua
---@class FooterRender
|
|
local M = {}
|
|
|
|
---@class FooterProps
|
|
---@field text? string
|
|
|
|
---@class UIComponent
|
|
---@field type string
|
|
---@field props? table
|
|
---@field children? table
|
|
|
|
---@param props FooterProps
|
|
---@return UIComponent
|
|
function M.render(props)
|
|
local text = props.text or "© 2024 MetaBuilder. Built with visual workflows."
|
|
return {
|
|
type = "Box",
|
|
props = { className = "border-t bg-muted/30 py-8 mt-20" },
|
|
children = {
|
|
{
|
|
type = "Container",
|
|
props = { className = "text-center text-sm text-muted-foreground" },
|
|
children = {
|
|
{ type = "Typography", props = { text = text } }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
end
|
|
|
|
return M
|