Files
outline/shared/editor/embeds/Vimeo.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

24 lines
544 B
TypeScript

import * as React from "react";
import Frame from "../components/Frame";
import type { EmbedProps as Props } from ".";
function Vimeo({ matches, ...props }: Props) {
const videoId = matches[4];
const hId = matches[5];
return (
<Frame
{...props}
src={`https://player.vimeo.com/video/${videoId}?byline=0${
hId ? `&h=${hId}` : ""
}`}
title={`Vimeo Embed (${videoId})`}
height="412px"
border={false}
referrerPolicy="strict-origin-when-cross-origin"
/>
);
}
export default Vimeo;