import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import { Card, List, ListItem, Paper, Typography } from '@material-ui/core'; import { ErrorInfo } from '../../../../classes/client'; import BaseDialog from '../base-dialog'; import { SimpleDialogProps } from '..'; import { useStyles } from './style'; import moment from 'moment'; import { fetchMapById } from '../../../../redux/clientSlice'; const InfoDialog = (props: SimpleDialogProps) => { const { mapId, onClose } = props; const { map } = fetchMapById(mapId); const [error, setError] = React.useState(); const [] = React.useState('1'); const intl = useIntl(); const classes = useStyles(); const handleOnClose = (): void => { onClose(); setError(undefined); }; return ( : {map?.title} : {map?.description} : {map?.createdBy} : {moment(map?.creationTime).format("lll")} : {map?.lastModificationBy} : {moment(map?.lastModificationTime).format("lll")} : {Boolean(map?.starred).toString()} : {Boolean(map?.isPublic).toString()} ) } export default InfoDialog;