import NorgKit import SwiftUI struct QuoteView: View { @Environment(\.norgTheme) private var theme let status: TaskStatus? let content: [InlineSpan] let line: Int let onSetStatus: (Int, TaskStatus) -> Void var body: some View { HStack(alignment: .top, spacing: 8) { RoundedRectangle(cornerRadius: 1.5) .fill(theme.quoteBarColor) .frame(width: 3) if let status { BlockTaskRow( status: status, content: content, font: theme.body, line: line, onSetStatus: onSetStatus ) } else { Text(AttributedString(norg: content, theme: theme)) .foregroundStyle(theme.quoteColor) .italic() } } .fixedSize(horizontal: false, vertical: true) } }