"use client"; import { FC } from "react"; import { ReadMore } from "../../ReadMore"; import { MdFavorite, MdFavoriteBorder } from "react-icons/md"; import { RxEyeOpen, RxEyeClosed } from "react-icons/rx"; import { IoMdRemoveCircleOutline } from "react-icons/io"; import { Movie } from "@/types/global"; interface MinimalLayoutProps extends Movie { showDayCounter?: boolean; simpleToggle?: boolean; alreadyInStore?: Movie | undefined; isReleased: boolean; handleAdd: () => void; handleRemove: () => void; handleSeen: () => void; handleFavorite: () => void; releaseDate: Date; } export const MinimalLayout: FC = ({ title, overview, poster_path, vote_average, seen, favorite, alreadyInStore, isReleased, handleAdd, handleRemove, handleSeen, handleFavorite, releaseDate, }) => { return (
{title} {/* Rating badge */} {!!vote_average && (
★ {vote_average.toFixed(1)}
)} {/* Action overlay */}
{!alreadyInStore ? ( ) : (
{isReleased && ( )}
)}
{/* Content section */}

{title}

{releaseDate.toLocaleDateString("pl-PL", { day: "numeric", month: "long", year: "numeric", })} {alreadyInStore && (
{seen && (
)} {favorite && (
)}
)}
); };