Files
outline/shared/editor/embeds/Linkedin.tsx
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

21 lines
536 B
TypeScript

import * as React from "react";
import Frame from "../components/Frame";
import type { EmbedProps as Props } from ".";
function Linkedin({ matches, ...props }: Props) {
const objectId = matches[2];
const postType = matches[1];
if (matches[3] === "embed") {
return <Frame {...props} src={`${props.attrs.href}`} title="LinkedIn" />;
}
return (
<Frame
{...props}
src={`https://www.linkedin.com/embed/feed/update/urn:li:${postType}:${objectId}`}
title="LinkedIn"
/>
);
}
export default Linkedin;