import React from 'react';
import s from './Author.module.scss';
import classNames from 'classnames';

import Image from "next/image";
interface Props {
    image:StaticImageData,
    name: string
}

const Author = ({image,name}:Props) =>{

    return (
        <div className={classNames(s.authorWarper)}>
            <Image className={classNames(s.authorImage)}  src={image}  alt=""/>
            <div className={classNames(s.authorName)}>{name}</div>
        </div>
    )
}

export default Author;