import Image from "next/image";

export const Poster = (props: {
  image: string;
  alt?: string;
  //   title: { ru: string; original: string };
  //   note: string | null;
  //   description: string;
//   type?: "image_only";
  className?: string;
}) => {
  return (
    <Image
      className={`object-cover rounded-lg shadow-md ${props.className}`}
      // className="w-[285px] max-h-[385px] object-cover border border-gray-200 rounded-lg shadow-md dark:border-gray-700"
      src={props.image}
      alt={props.alt || ""}
      width={285}
      height={385}
    />
  );
};