package main import ( "bytes" "context" "git.dev.alexdunmow.com/block/core/blocks" ) // GlitterDividerBlockMeta declares the animated sparkle divider. var GlitterDividerBlockMeta = blocks.BlockMeta{ Key: "glitter_divider", Title: "Glitter Divider", Description: "Animated sparkle horizontal rule.", Source: "y2k", Category: blocks.CategoryLayout, } // GlitterDividerBlock renders the divider. // Content: {variant} func GlitterDividerBlock(ctx context.Context, content map[string]any) string { variant := getStringOr(content, "variant", "sparkle") var buf bytes.Buffer _ = glitterDividerComponent(variant).Render(ctx, &buf) return buf.String() }