gallery implementation

This commit is contained in:
Cory Dransfeldt 2022-06-07 15:55:04 -07:00
parent 5c1a068e2f
commit c87e0ed7f6
10 changed files with 145 additions and 541 deletions

View file

@ -4,7 +4,7 @@ import YoutubeVideo from './YouTubeVideo'
const MediaItem = (props) => {
const { type, title, data } = props
if (type !== 'video' && type !== 'photos') return null
if ((type !== 'video' && type !== 'photos') || !data) return null
const item =
type === 'video' ? (