// templui component code - version: main installed by templui v0.71.0 package code import ( "git.jmbit.de/jmb/scanfile/server/web/templui/components/icon" "git.jmbit.de/jmb/scanfile/server/web/templui/utils" ) type Size string const ( SizeSm Size = "sm" SizeLg Size = "lg" SizeFull Size = "full" ) type Props struct { ID string Class string Attrs templ.Attributes Language string ShowCopyButton bool Size Size CodeClass string } templ Code(props ...Props) { @Script() {{ var p Props }} if len(props) > 0 { {{ p = props[0] }} } if p.ID == "" { {{ p.ID = "code-" + utils.RandomID() }} }
{ children... }
if p.ShowCopyButton {
}