package routes import ( "github.com/LazyBachelor/LazyPM/internal/models" "github.com/LazyBachelor/LazyPM/pkg/web/components" ) type IssueDetailProps struct { Issue *models.Issue Comments []*models.Comment } templ IssueDetailContent(props IssueDetailProps) {
@components.IconBack() Back to Issues
@components.IssueDetail(components.IssueDetailProps{Issue: props.Issue})
@components.CommentSection(components.CommentSectionProps{ IssueID: props.Issue.ID, Comments: props.Comments, })
} templ IssueDetail(props IssueDetailProps) { @BaseLayout() { @IssueDetailContent(props) } }