//
//  ArticleToolbarModifier.swift
//  NetNewsWire
//
//  Created by Maurice Parker on 7/5/20.
//  Copyright © 2020 Ranchero Software. All rights reserved.
//

import SwiftUI

struct ArticleToolbarModifier: ViewModifier {
	
	func body(content: Content) -> some View {
		content
			.toolbar {
				#if os(iOS)
				
				ToolbarItem(placement: .navigation) {
					HStack(spacing: 20) {
						Button(action: {
						}, label: {
							AppAssets.prevArticleImage
								.font(.title3)
						}).help("Previouse Unread")
						Button(action: {
						}, label: {
							AppAssets.nextArticleImage
								.font(.title3)
						}).help("Next Unread")
					}
				}

				ToolbarItem {
					Button(action: {
					}, label: {
						AppAssets.readOpenImage
							.font(.title3)
					}).help("Mark as Unread")
				}

				ToolbarItem {
					Spacer()
				}
				
				ToolbarItem {
					Button(action: {
					}, label: {
						AppAssets.starOpenImage
							.font(.title3)
					}).help("Mark as Starred")
				}

				ToolbarItem {
					Spacer()
				}
				
				ToolbarItem {
					Button(action: {
					}, label: {
						AppAssets.nextUnreadArticleImage
							.font(.title3)
					}).help("Next Unread")
				}

				ToolbarItem {
					Spacer()
				}
				
				ToolbarItem {
					Button(action: {
					}, label: {
						AppAssets.articleExtractorOff
							.font(.title3)
					}).help("Reader View")
				}

				ToolbarItem {
					Spacer()
				}
				
				ToolbarItem {
					Button(action: {
					}, label: {
						AppAssets.shareImage
							.font(.title3)
					}).help("Share")
				}

				#endif
			}
	}
	
}