"use client" import React,{useEffect} from 'react' import { GoogleMap, LoadScript, Marker } from '@react-google-maps/api'; import Loading from '../Loading' import Link from 'next/link' import { SettingsProps } from '@/types'; import { HiLocationMarker } from "react-icons/hi"; import { MdEmail } from "react-icons/md"; import { FaPhone } from "react-icons/fa6"; import mailgo from "mailgo"; const containerStyle = { width: '100%', height: '100%' }; const Map = ({ settings }: { settings: SettingsProps }) => { const center = { lat: settings.latitude, lng: settings.longitude, }; useEffect(() => { mailgo(); }, []); return (
{"地址"}
{"電郵"}
{settings.email}
{"電話"}
{settings.phone}