//
//  Page.swift
//  
//
//  Created by Oscar Byström Ericsson on 2021-04-12.
//

struct Page: Text {
    let header: Text?
    let footer: Text?
    let content: Text
    
    var items: [Text] {
        [header, content, footer].compactMap({ $0 })
    }
    
    var body: Text {
        VStack(content: items)
    }
}
