package templates
import "dealroom/internal/model"
templ StageBadge(stage string) {
{ model.StageName(stage) }
}
templ StatusIcon(status string) {
if status == "fulfilled" {
✅
} else if status == "partial" {
⚠️
} else if status == "not_applicable" {
➖
} else {
🔴
}
}
templ PriorityBadge(priority string) {
if priority == "high" {
High
} else if priority == "medium" {
Med
} else {
Low
}
}
templ FileStatusBadge(status string) {
if status == "reviewed" {
Reviewed
} else if status == "flagged" {
Flagged
} else if status == "processing" {
Processing
} else {
Uploaded
}
}
templ ContactTypeBadge(contactType string) {
if contactType == "buyer" {
Buyer
} else if contactType == "advisor" {
Advisor
} else {
Internal
}
}