package components import ( "fmt" "reichard.io/antholume/database" ) templ StreakCard(streak database.UserStreak) {

if streak.Window == "WEEK" { Weekly Read Streak } else { Daily Read Streak }

{ fmt.Sprint(streak.CurrentStreak) }

if streak.Window == "WEEK" { Current Read Streak } else { Current Read Streak }

{ streak.CurrentStreakStartDate } ➞ { streak.CurrentStreakEndDate }
{ fmt.Sprint(streak.CurrentStreak) }

if streak.Window == "WEEK" { Best Weekly Streak } else { Best Daily Streak }

{ streak.MaxStreakStartDate } ➞ { streak.MaxStreakEndDate }
{ fmt.Sprint(streak.MaxStreak) }
}