Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Failing after 2m24s
Build & Deploy / 🏗️ Build (push) Failing after 3m40s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 3s
30 lines
695 B
TypeScript
30 lines
695 B
TypeScript
import { MintelBlock } from "./types";
|
|
|
|
import type { Block } from "payload";
|
|
|
|
export const LinkedInEmbedBlock: MintelBlock = {
|
|
slug: "linkedInEmbed",
|
|
labels: {
|
|
singular: "Linked In Embed",
|
|
plural: "Linked In Embeds",
|
|
},
|
|
admin: {
|
|
group: "MDX Components",
|
|
},
|
|
ai: {
|
|
name: "LinkedInEmbed",
|
|
description:
|
|
"Embeds a professional post from LinkedIn. Use the activity URN (e.g. urn:li:activity:1234567890).",
|
|
usageExample:
|
|
"'<LinkedInEmbed urn=\"urn:li:activity:7153664326573674496\" />'",
|
|
},
|
|
fields: [
|
|
{
|
|
name: "url",
|
|
type: "text",
|
|
required: true,
|
|
admin: { description: "Geben Sie den Text für url ein." },
|
|
},
|
|
],
|
|
};
|