import * as React from 'react'; import { useSearch } from 'wouter'; import { RefreshCcw } from 'lucide-react'; import { Input } from '../preshape/Input/Input.js'; import { Box } from '../preshape/box/box.js'; import { Antwerp } from '../antwerp.js'; import { getUrlParams } from './utils/get-url-params.js'; import { toShapes } from '../../../src/to-shapes/to-shapes.js'; function Editor() { const searchParamsStr = useSearch(); const { colorMethod, colorScale, configuration, repeatCount, inRadius, shapeSize, showTransforms, showVertices } = getUrlParams(searchParamsStr); function handleUpdateConfiguration() { toShapes(configuration, repeatCount, shapeSize, inRadius); }; function handleSubmit(event: React.FormEvent) { event.preventDefault(); handleUpdateConfiguration(); }; return ( {/*
*/} setValue((event.target as HTMLInputElement).value) } paddingHorizontal="x6" paddingVertical="x3" // size="x2" // value={value} value={configuration} readOnly //TODO2 /> {/*
*/}
); }; export { Editor }