package templates import "fmt" // Notification displays a temporary notification message templ Notification(message string, notificationType string) {

{ message }

} // Success notification templ SuccessNotification(message string) { @Notification(message, "success") } // Error notification templ ErrorNotification(message string) { @Notification(message, "error") } // RestoreSuccessResponse returns a response for successful restore operation templ RestoreSuccessResponse(backupID string) {
@SuccessNotification("Backup restoration started successfully")
} // RestoreErrorResponse returns a response for failed restore operation templ RestoreErrorResponse(errorMessage string) {
@ErrorNotification(fmt.Sprintf("Backup restoration failed: %s", errorMessage))
}