import NorgKit import SwiftUI struct RangeableBlockView: View { @Environment(\.norgTheme) private var theme let title: [InlineSpan] let status: TaskStatus? let line: Int let onSetStatus: (Int, TaskStatus) -> Void var body: some View { if let status { BlockTaskRow( status: status, content: title, font: theme.termFont, line: line, onSetStatus: onSetStatus ) } else { Text(AttributedString(norg: title, baseFont: theme.termFont, theme: theme)) .font(theme.termFont) } } }