package components import "fmt" import "strings" templ SuccessToast(message string, args ...any) { } templ ErrorToast(message string, args ...any) {
for _, line := range strings.Split(fmt.Sprintf(message, args...), "\n") {

{ line }

}
}