Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<ResourceList
resourceName={{ singular: "product", plural: "products" }}
items={[settingsObj]}
renderItem={(item) => {
const { id, title, image } = item;
return (
<ResourceItem
id={id}
media={
<Thumbnail
size="small"
source={image?.src || ImageMajor}
alt={`Product ${title} thumbnail`}
/>
}
name={title}
verticalAlignment="center"
>
<h3>
<TextStyle variation="strong">{title}</TextStyle>
</h3>
</ResourceItem>
);
}}
/>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment