Skip to content

🎥 Make videos programmatically with React

724 B
Raw Blame
import React from "react";

export const ErrorComp: React.FC<{
  message: string;
}> = ({ message }) => {
  return (
    <div className="text-geist-error font-geist py-geist-half">
      <svg
        fill="none"
        shapeRendering="geometricPrecision"
        stroke="currentColor"
        strokeLinecap="round"
        strokeLinejoin="round"
        strokeWidth="2"
        viewBox="0 0 24 24"
        className="h-5 align-text-bottom mr-1.5 inline"
      >
        <circle cx="12" cy="12" r="10" fill="var(--geist-fill)"></circle>
        <path d="M12 8v4" stroke="currentColor"></path>
        <path d="M12 16h.01" stroke="currentColor"></path>
      </svg>
      <strong>Error:</strong> {message}
    </div>
  );
};