import Head from 'next/head' import { useTranslations } from 'next-intl' interface SEOProps { title?: string description?: string keywords?: string image?: string url?: string type?: 'website' | 'article' | 'product' locale?: string } export default function SEO({ title: customTitle, description: customDescription, keywords: customKeywords, image = '/images/og-image.png', url = 'https://aiartools.com', type = 'website', locale = 'en' }: SEOProps) { const t = useTranslations('seo') const title = customTitle || t('title') const description = customDescription || t('description') const keywords = customKeywords || t('keywords') return (
{/* 基础 meta 标签 */}