"""A complete DyUI app that shows the `table` component.

Save it as app.py, then run:  dyui run app.py
"""
import dyui
from dyui import ui

app = dyui.App(title="Table demo", starters=["Show me"], persist=False)


@app.on_message
async def reply(msg: dyui.Message, chat: dyui.Chat):
    yield "Here is the `table` component."
    yield ui.Table(["City", "Temp"], [["Lisbon", 24], ["Porto", 21]])
