components/elements/QuoteList/index.jsjavascript
import definition from "./schema.js";
import { QuoteList } from "./QuoteList";
/** Element definition consumed by elements/registry.js (pattern: StoryTitle/index.js). */
export default {
...definition,
component: QuoteList,
adapter: ({ quotes }) => ({
items: (quotes || []).map((quote) => ({
content: { headline: quote.headline, icon: quote.icon, text: quote.text },
})),
}),
};