IceCubesApp/Packages/DesignSystem/Sources/DesignSystem/Views/StatusEditorToolbarItem.swift
2022-12-30 18:40:10 +01:00

16 lines
349 B
Swift

import SwiftUI
import Env
@MainActor
extension View {
public func statusEditorToolbarItem(routeurPath: RouterPath) -> some ToolbarContent {
ToolbarItem(placement: .navigationBarTrailing) {
Button {
routeurPath.presentedSheet = .newStatusEditor
} label: {
Image(systemName: "square.and.pencil")
}
}
}
}