package main
import "git.dev.alexdunmow.com/block/core/blocks"
// storybookQuoteComponent renders a quote with optional illustration.
templ storybookQuoteComponent(data StorybookQuoteData) {
if data.Quote != "" {
"{ data.Quote }"
} else {
Add a quote to inspire your readers.
}
if data.Author != "" {
— { data.Author }
}
if data.Illustration != "" {
} else {
@storybookFallbackIllustration()
}
}
// storybookFallbackIllustration renders a friendly SVG when no illustration
// is supplied. It guarantees a visible, themed graphic instead of a broken
// image icon.
templ storybookFallbackIllustration() {
}