How to pass custom Author component from the app?
...
...
ampRoutes(app, {
...
...
render: {
authorCardRender: ({ story, config, theme }) => {
const authorSettings =
get(
config,
["additionalConfig", "story", ${camelCase(storyType)}-story
, "settings", "authorDetails"],
{}
) || {};
const authorStyle = get(authorSettings, ["template"], "default");
if (authorStyle !== "default") return null;
const { enableLocalization = false, localizedElements = {} } = get(
config,
["additionalConfig", "general", "localization"],
{}
);
const localizedElementData = enableLocalization ? localizedElements : {};
const { buttonLabels = {} } = localizedElementData;
const { authorLabel: localizedAuthorLabel, guestAuthorLabel: localizedGuestAuthorLabel } = buttonLabels;
const authorConfig = {
...authorSettings,
localizedAuthorLabel,
localizedGuestAuthorLabel,
};
return ;
}
},
}
...
...