fix: add mobile responsiveness to TXT component

This commit is contained in:
암냥 2025-12-20 01:18:03 +09:00
commit 947e376c29
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -1,10 +1,15 @@
import Image from "next/image";
import { useIsMobile } from "@/hooks/use-mobile";
interface TXTProps {
onHover?: (position: { x: number; y: number } | null) => void;
}
export default function TXT({ onHover }: TXTProps) {
const isMobile = useIsMobile();
if (isMobile) return null;
return (
<div
className="flex flex-col items-center justify-center gap-4 absolute top-4 left-4 p-2 cursor-pointer font-galmuri drag-none select-none"