forked from 77media/video-flow
13 lines
220 B
TypeScript
13 lines
220 B
TypeScript
import { useRef } from "react";
|
|
|
|
export function TextCanvas({
|
|
text,
|
|
size
|
|
}: {
|
|
text: string;
|
|
size: number;
|
|
}) {
|
|
const canvasRef = useRef<HTMLCanvasElement>(null);
|
|
return <canvas ref={canvasRef}></canvas>;
|
|
}
|