import Image from 'next/future/image'; import { getProxiedIMDbImgUrl, modifyIMDbImg } from 'src/utils/helpers'; import { Card } from 'src/components/card'; import type { Data } from 'src/interfaces/shared/list'; import styles from 'src/styles/modules/components/list/names.module.scss'; import OptionalLink from './OptionalLink'; type Props = { names: Data<'names'>[]; }; const Names = ({ names }: Props) => { return ( ); }; export default Names; const Name = ({ about, image, job, knownFor, knownForLink, name, url }: Props['names'][number]) => { // const style: CSSProperties = { // backgroundImage: image ? `url(${getProxiedIMDbImgUrl(modifyIMDbImg(image, 300))})` : undefined, // }; return (
{image ? ( ) : ( )}

{name}

{about}

); };