import type { IMessage } from '@rocket.chat/core-typings'; import MapView from './location/MapView'; export type LocationProps = { location?: IMessage['location']; }; const Location = ({ location }: LocationProps) => { const [longitude, latitude] = location?.coordinates ?? []; if (!latitude || !longitude) { return null; } return ; }; export default Location;