package pages import ( "fmt" "git.hafen.run/lukas/timeshare/components/button" "git.hafen.run/lukas/timeshare/components/label" "git.hafen.run/lukas/timeshare/components/radio" "git.hafen.run/lukas/timeshare/components/toast" ) type Expiry struct { DurationCode string DurationName string } templ Upload(expirations []Expiry, uploadedLink string) { @PageSkeleton("Upload - Time Share") { if uploadedLink != "" { @toast.Toast(toast.Props{ Title: "Share Created!", Description: fmt.Sprintf(`%s`, uploadedLink, uploadedLink), Variant: toast.VariantSuccess, Duration: 120000, // 2 min Position: toast.PositionBottomCenter, Dismissible: true, Icon: true, }) }