mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 14:54:55 +00:00
17 lines
430 B
Lua
17 lines
430 B
Lua
--- Render a schedule item
|
|
---@param stream ScheduledStream Scheduled stream data
|
|
---@return ScheduleItemComponent Schedule item component
|
|
local function render_schedule_item(stream)
|
|
return {
|
|
type = "schedule_item",
|
|
props = {
|
|
title = stream.title,
|
|
start_time = stream.start_time,
|
|
duration = stream.duration,
|
|
thumbnail = stream.thumbnail
|
|
}
|
|
}
|
|
end
|
|
|
|
return render_schedule_item
|