import Foundation

/// A transcription of a processed recording.
public struct Transcription: Equatable, Identifiable, Sendable {
    
    // MARK: Properties

    /// The unique identifier of the transcription.
    public let id: UUID = .init()

    /// The transcribed text of the processed recording.
    public let text: String
    
    // MARK: Initializers

    /// Creates a transcription with a given text.
    /// - Parameter text: The transcribed text of the processed recording.
    public init(
        text: String
    ) {
        self.text = text
    }

    // MARK: Computed

    /// A Boolean value that indicates whether the transcription has no text.
    public var isEmpty: Bool {
        text.isEmpty
    }

}
