mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 04:14:18 +00:00
21 lines
500 B
TypeScript
21 lines
500 B
TypeScript
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; |