'use client'; import { useContext, useState } from 'react'; import styles from '@/app/page.module.css' import { TextField } from './textfield'; import { WASMContext, WASMContextProvider } from '@/context/utfdump'; type InspectorProps = { sourceUrl: string, }; export function Inspector(props: InspectorProps) { const [currentString, setCurrentString] = useState(''); return (

Source code is available here. Text entered above is not sent over the network.

); } function Out(props: { currentString: string }) { const ctx = useContext(WASMContext); if (!ctx.wasm) { return (

Loading WASM...

); } return (
{/*

{spongebob_case(currentString)}

*/}

{ctx.wasm.spongebob_case(props.currentString)}

); }