"ue client"; import { useState, useTransition } from "react"; import { Environment, CameraControls } from "@react-three/drei"; import { PresetsType } from "@react-three/drei/helpers/environment-assets"; import { useControls } from "leva"; import { CameraControlsImpl } from "@react-three/drei"; const { ACTION } = CameraControlsImpl; export const Env = () => { // eslint-disable-next-line @typescript-eslint/no-unused-vars const [_, startTransition] = useTransition(); const [background, setBackground] = useState("sunset"); useControls({ background: { value: background, options: ["sunset", "dawn", "forest"], onChange: (value) => startTransition(() => setBackground(value)), }, }); return ( <> ); };