local assets 1/2
This commit is contained in:
@@ -9,14 +9,12 @@ import getBackgroundStyles from "./utils/getBackgroundStyles.js";
|
||||
|
||||
export default async function renderImg(props) {
|
||||
const type = "Img";
|
||||
|
||||
|
||||
if (props.src === undefined) {
|
||||
props.src = 'https://picsum.photos/640/640'
|
||||
console.error("The 'src' attribute is required for the 'Img' component.", props)
|
||||
}
|
||||
|
||||
const { filteredProps, transformConfigs } = getFilteredProps(type, props);
|
||||
|
||||
|
||||
const {
|
||||
src,
|
||||
@@ -37,8 +35,8 @@ export default async function renderImg(props) {
|
||||
|
||||
const artDirectives = [],
|
||||
fallbackFormat = format,
|
||||
fadeInTransition = false,
|
||||
includeSourceFormat = false;
|
||||
fadeInTransition = true,
|
||||
includeSourceFormat = true;
|
||||
|
||||
const {
|
||||
img: imgAttributes = {},
|
||||
|
||||
Reference in New Issue
Block a user