package layouts

// |@@| C

import (
	"gardening/src/lib/kit"
	"gitlab.com/ccyrillee/kitcla/goc"
)

type SettingsLayout struct {
	Kit    *kit.Kit
	Layout *Layout
}

func (this *SettingsLayout) H(sections []goc.HTML, mod *LayoutMod) goc.HTML {
	mod.Content = this.content(sections)
	return this.Layout.H(mod)
}

func (this *SettingsLayout) content(sections []goc.HTML) goc.HTML {
	return this.Kit.Component.Cas("div",
		goc.Attr{"class": "mt-8 space-y-6"},
		sections...,
	)
}
