package domain

// GetStaticTemplate is kept for compatibility; prefers hermes generators.
// brand may be zero — DefaultBrand used when Logo/Name empty.
func GetStaticTemplate(kind TemplateKind, lang Language) (*EmailTemplate, error) {
	return GenerateTemplate(kind, lang, DefaultBrand(""))
}

// GetTemplate with brand (logo / product name).
func GetTemplate(kind TemplateKind, lang Language, brand Brand) (*EmailTemplate, error) {
	if brand.Name == "" && brand.LogoURL == "" {
		brand = DefaultBrand(brand.Link)
	}
	return GenerateTemplate(kind, lang, brand)
}
