import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Box from '@material-ui/core/Box'; import ImportContactsIcon from '@material-ui/icons/ImportContacts'; import Button from '@material-ui/core/Button'; import LabelIcon from '@material-ui/icons/Label'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import { GridGallery } from './gridgallery.js'; import { MapView } from './map.js'; const useStyles = makeStyles(theme => ({ root: { width: "100%", }, albumscontainer: { }, albumitemcontainer: { display: "block", }, tagscontainer: { }, tagitemcontainer: { display: "block", }, })); export function AlbumItemView(props) { const { album } = props; return ( ) } export function AlbumsView(props) { const classes = useStyles(); const { albums } = props; return ( { albums.map(elem => { return ( ) }) } ) } export function TagItemView(props) { const { tag } = props; return ( ) } export function TagsView(props) { const classes = useStyles(); const { tags } = props; return ( { tags.map(elem => { return ( ) }) } ) } export function ImagesView(props) { return ; } function TabPanel(props) { const { children, activeIndex, myIndex } = props; return ( <> {activeIndex === myIndex && {children}} ); } export function ResultsView(props) { const classes = useStyles(); const { photos, albums, tags } = props; const [ activeIndex, setActiveIndex ] = React.useState(0); var _ = require('lodash'); function tabProps(index) { return { id: _.uniqueId("tab_"), }; } const handleChange = (e, newindex) => { setActiveIndex(newindex); } return (
); }