Update to structure
This commit is contained in:
21
frontend/src/components/Stream/Thumbnail.tsx
Normal file
21
frontend/src/components/Stream/Thumbnail.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react'
|
||||
|
||||
interface ThumbnailProps {
|
||||
path: string;
|
||||
alt?: string;
|
||||
}
|
||||
|
||||
const Thumbnail = ({ path, alt }: ThumbnailProps) => {
|
||||
return (
|
||||
<div>
|
||||
<img
|
||||
width={300}
|
||||
src={path}
|
||||
alt={alt}
|
||||
className="stream-thumbnail rounded-md"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Thumbnail
|
||||
Reference in New Issue
Block a user