fix: build issues

This commit is contained in:
neoapps-dev 2026-04-03 22:06:37 +03:00
parent 5afc3c0418
commit 3f0f2890b8

View file

@ -1,12 +1,11 @@
import { useState, useEffect, useRef } from "react";
import { motion } from "framer-motion";
import { TauriService } from "../../services/TauriService";
import { useUI, useAudio, useConfig } from "../../context/LauncherContext";
export default function DevtoolsView() {
const { setActiveView } = useUI();
const [backHover, setBackHover] = useState(false);
const { playBackSound, playClickSound } = useAudio();
const [focusIndex, setFocusIndex] = useState<number | null>(null);
const { playBackSound } = useAudio();
const [focusIndex] = useState<number | null>(null);
const containerRef = useRef<HTMLDivElement>(null);
useEffect(() => {
const handleKeyDown = (e: KeyboardEvent) => {
@ -28,15 +27,6 @@ export default function DevtoolsView() {
}
}, [focusIndex]);
const getItemStyle = (index: number) => ({
backgroundImage:
focusIndex === index
? "url('/images/button_highlighted.png')"
: "url('/images/Button_Background.png')",
backgroundSize: "100% 100%",
imageRendering: "pixelated" as const,
});
return (
<motion.div
tabIndex={0}