mirror of
https://github.com/beilunyang/moemail.git
synced 2026-06-03 14:40:21 +08:00
feat(sharing): add email and message sharing functionality
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { useTranslations } from "next-intl"
|
||||
import { usePathname } from "next/navigation"
|
||||
import { Github } from "lucide-react"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import {
|
||||
@@ -12,9 +13,15 @@ import {
|
||||
|
||||
export function FloatMenu() {
|
||||
const t = useTranslations("common")
|
||||
const pathname = usePathname()
|
||||
|
||||
// 在分享页面隐藏GitHub悬浮框
|
||||
if (pathname.includes("/shared/")) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="fixed bottom-6 right-6">
|
||||
<div className="fixed bottom-6 right-6 z-50">
|
||||
<TooltipProvider>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
|
||||
Reference in New Issue
Block a user