package components import ( "github.com/LazyBachelor/LazyPM/internal/models" "github.com/LazyBachelor/LazyPM/pkg/web/components/base" ) type CommentSectionProps struct { IssueID string Comments []models.Comment } templ CommentSection(props CommentSectionProps) {
No comments yet. Be the first to comment!
} else { for _, comment := range props.Comments { @CommentItem(CommentItemProps{Comment: comment}) } } } type CommentItemProps struct { Comment models.Comment } templ CommentItem(props CommentItemProps) {{ props.Comment.Text }
No comments yet. Be the first to comment!
} else { for _, comment := range props.Comments { @CommentItem(CommentItemProps{Comment: comment}) } }