import SwiftUI

struct SidebarView: View {
	@Bindable var viewModel: MailViewModel

	var body: some View {
		List(selection: $viewModel.selectedPerspective) {
			Section("Views") {
				ForEach(MailViewModel.Perspective.allCases) { perspective in
					Label(perspective.rawValue, systemImage: perspective.systemImage)
						.tag(perspective)
				}
			}
		}
		.navigationTitle("Magnum Opus")
		.listStyle(.sidebar)
	}
}
