'use client' // External and package imports import { useLayoutEffect, useRef } from 'react' import { useMediaQuery } from 'react-responsive' import { Rnd } from 'react-rnd' import { IsWalletConnected } from '@/components/blockchain/is-wallet-connected' import { IsWalletDisconnected } from '@/components/blockchain/is-wallet-disconnected' import AlertDestructive from '@/components/formsteps/FormUnavailable' import Dashboard from './dashboard/page' import { BottomRightHandle } from '../components/ui/BottomRightHandle' const containerStyles = { width: '100vw', height: '100vh', } export default function Home() { const isTabletOrMobile = useMediaQuery({ query: '(max-width: 600px)' }) const refContainer = useRef(null) const refChild = useRef(null) const rndRef = useRef(null) const defaultSize = isTabletOrMobile ? { width: '95%', height: '95%' } : { width: '85%', height: '85%' } useLayoutEffect(() => { rndRef.current?.updatePosition({ x: 0, y: 0 }) }, []) return (
}} default={{ y: 0, x: 0, ...defaultSize, }} style={{ position: 'relative', // top: '0%', // left: '0%', }}>
) }