Skip to content

🎥 Make videos programmatically with React

715 B
Raw Blame
/* eslint-disable @next/next/no-img-element */
import Link from "next/link";

interface HeaderProps {
  asLink?: boolean;
}

export function Header({ asLink = false }: HeaderProps) {
  const content = (
    <div className="flex items-center gap-3">
      <img
        src="/logo-white.svg"
        alt="Remotion"
        style={{
          width: 32,
        }}
      />
      <span className="text-xl font-bold text-white font-sans">
        Remotion - Prompt to Motion Graphics
      </span>
    </div>
  );

  if (asLink) {
    return (
      <Link
        href="/"
        className="flex items-center hover:opacity-80 transition-opacity"
      >
        {content}
      </Link>
    );
  }

  return content;
}