import lustre import lustre/attribute import lustre/element.{type Element} import lustre/element/html import bsky_comments_widget/widget pub fn main() { let app = lustre.simple(init, update, view) let assert Ok(_) = widget.register() let assert Ok(_) = lustre.start(app, "#app", Nil) Nil } type Model = Nil fn init(_) -> Model { Nil } type Msg = Nil fn update(_, _) -> Model { Nil } fn view(_) -> Element(Msg) { html.html([], [ html.head([], [ html.link([ attribute.rel("stylesheet"), attribute.href("bsky_comments_widget.css"), ]), ]), html.div([attribute.class("p-32 mx-auto w-full max-w-4xl")], [ widget.element([ widget.post_url( "https://bsky.app/profile/mrgan.com/post/3michx3lqa22y", ), ]), ]), ]) }