import Image from "next/image";
import './CastSection.css';
const CastSection = ({ cast }) => {
return (
Cast:
{cast.length > 0 ? (
{cast.map((profile) => (
-
{profile.personName} {profile.name ? `as ${profile.name}` : ""}
))}
) : (
Cast not available
)}
);
};
export default CastSection;