59 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
// Code generated by templ - DO NOT EDIT.
 | 
						|
 | 
						|
// templ: version: v0.2.778
 | 
						|
package svgs
 | 
						|
 | 
						|
//lint:file-ignore SA4006 This context is only used if a nested component is present.
 | 
						|
 | 
						|
import "github.com/a-h/templ"
 | 
						|
import templruntime "github.com/a-h/templ/runtime"
 | 
						|
 | 
						|
func ClockSVG(className string) templ.Component {
 | 
						|
	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
 | 
						|
		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
 | 
						|
		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
 | 
						|
			return templ_7745c5c3_CtxErr
 | 
						|
		}
 | 
						|
		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
 | 
						|
		if !templ_7745c5c3_IsBuffer {
 | 
						|
			defer func() {
 | 
						|
				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
 | 
						|
				if templ_7745c5c3_Err == nil {
 | 
						|
					templ_7745c5c3_Err = templ_7745c5c3_BufErr
 | 
						|
				}
 | 
						|
			}()
 | 
						|
		}
 | 
						|
		ctx = templ.InitializeContext(ctx)
 | 
						|
		templ_7745c5c3_Var1 := templ.GetChildren(ctx)
 | 
						|
		if templ_7745c5c3_Var1 == nil {
 | 
						|
			templ_7745c5c3_Var1 = templ.NopComponent
 | 
						|
		}
 | 
						|
		ctx = templ.ClearChildren(ctx)
 | 
						|
		var templ_7745c5c3_Var2 = []any{className}
 | 
						|
		templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var2...)
 | 
						|
		if templ_7745c5c3_Err != nil {
 | 
						|
			return templ_7745c5c3_Err
 | 
						|
		}
 | 
						|
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"")
 | 
						|
		if templ_7745c5c3_Err != nil {
 | 
						|
			return templ_7745c5c3_Err
 | 
						|
		}
 | 
						|
		var templ_7745c5c3_Var3 string
 | 
						|
		templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(templ.CSSClasses(templ_7745c5c3_Var2).String())
 | 
						|
		if templ_7745c5c3_Err != nil {
 | 
						|
			return templ.Error{Err: templ_7745c5c3_Err, FileName: `clock.templ`, Line: 1, Col: 0}
 | 
						|
		}
 | 
						|
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
 | 
						|
		if templ_7745c5c3_Err != nil {
 | 
						|
			return templ_7745c5c3_Err
 | 
						|
		}
 | 
						|
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" fill=\"currentColor\" viewBox=\"0 0 24 24\"><path d=\"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z\"></path> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 7.25C12.4142 7.25 12.75 7.58579 12.75 8V11.6893L15.0303 13.9697C15.3232 14.2626 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2626 15.3232 13.9697 15.0303L11.4697 12.5303C11.329 12.3897 11.25 12.1989 11.25 12V8C11.25 7.58579 11.5858 7.25 12 7.25Z\" fill=\"white\"></path></svg>")
 | 
						|
		if templ_7745c5c3_Err != nil {
 | 
						|
			return templ_7745c5c3_Err
 | 
						|
		}
 | 
						|
		return templ_7745c5c3_Err
 | 
						|
	})
 | 
						|
}
 | 
						|
 | 
						|
var _ = templruntime.GeneratedTemplate
 |