package components import "fmt" import "github.com/haydenhargreaves/Potion/internal/domain/recipe" import domainServer "github.com/haydenhargreaves/Potion/internal/domain/server" templ likeButton() { } templ RecipeCardSmall(recipe domain.Recipe) {

{ recipe.Title }

Serves { recipe.Serves }

{ recipe.Category } - { recipe.Duration.Total } mins

if recipe.Favorite { @likeButton() }
} templ ContentCardSmall(content, target string) {

{ content }

} // TODO: Implement this using a recipe type parameter! templ RecipeCardLarge(recipe *domain.Recipe) { if recipe != nil {

{ recipe.Title }

Serves { recipe.Serves }

{ recipe.Description }

{ recipe.Category } - { recipe.Duration.Total } mins

if recipe.Favorite { @likeButton() }
} else {

Coming soon!

} }