[ABANDONDED] Set of "apps" for the Flexor social network.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
import React, { FC, useState, useEffect } from 'react' import classNames from 'classnames' import { ClassDictionary, GiphyGif } from '../../../types'
interface Props { gif: GiphyGif selected: boolean onSelect: (id: string) => void }
const Gif: FC<Props> = ({ gif, selected, onSelect }) => { const classes: ClassDictionary = { gif: true, selected, }
return ( <div className={classNames(classes)} onClick={() => onSelect(gif.id)}> <img src={gif.images.fixed_height.url} alt={gif.title} /> </div> ) }
export default Gif
|