// Place the extracted package inside your app, then adjust this relative import.
// Use your existing React/bundler setup; React is not included in this download.
import {useMemo,useState} from 'react'
import {PixelCurrentCanvas} from '../react-adapter.mjs'
export default function ProductIntroduction(){
 const from=useMemo(()=>({kind:'text',value:'IDEA'}),[])
 const to=useMemo(()=>({kind:'text',value:'BUILT'}),[])
 const recipe=useMemo(()=>({count:900,seed:52}),[])
 const [progress,setProgress]=useState(0),[error,setError]=useState('')
 return <section>
  <h1>From idea to a working product</h1>
  <PixelCurrentCanvas from={from} to={to} recipe={recipe} progress={progress}
   style={{width:'100%',height:320}} aria-hidden="true" onError={e=>setError(e.message)}/>
  <label>Transition progress <input type="range" min="0" max="1" step=".01"
   value={progress} onChange={event=>setProgress(Number(event.target.value))}/></label>
  <p role="status">{error}</p>
 </section>
}
