import { useContext } from 'react'; import { Transition } from "@headlessui/react"; import { faArrowRightArrowLeft, faCube, faTrash} from "@fortawesome/pro-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { AppUiContext } from '../../contexts/AppUiContext'; import { Button, H4, H6, InputVector } from "~/components"; import { XYZ } from '../../datastructures/common'; export const ControlPanelSceneObject = () => { const [appUiState, dispatchAppUiState ] = useContext(AppUiContext); const position = appUiState?.currentSceneObject.objectVectors.position; const rotation = appUiState?.currentSceneObject.objectVectors.rotation; const scalar = appUiState?.currentSceneObject.objectVectors.scalar; const handlePositionChange = (xyz:XYZ)=>{ console.log(xyz); // setPosition(xyz); } const handleRotationChange = (xyz:XYZ)=>{ console.log(xyz); // setRotation(xyz); } const handleScalarChange = (xyz:XYZ)=>{ console.log(xyz); // setScalar(xyz); } return(

Object Name

Swap Object

Position

Rotation

Scale

); }