17 lines
339 B
Swift
17 lines
339 B
Swift
/// Use the `NodeBuilder` for generating a discussion.
|
|
public struct Discussion: NodeRepresentable {
|
|
@usableFromInline
|
|
let label: any NodeRepresentable
|
|
|
|
@inlinable
|
|
public init(@NodeBuilder label: () -> any NodeRepresentable) {
|
|
self.label = label()
|
|
}
|
|
|
|
@inlinable
|
|
public func render() -> String {
|
|
label.render()
|
|
}
|
|
|
|
}
|