Change terminology. Sketch out Draft Function

This commit is contained in:
Yura Dupyn 2026-02-14 00:14:15 +01:00
parent 6a0f95812a
commit 0941756bf9
8 changed files with 172 additions and 55 deletions

View file

@ -1,3 +1,4 @@
import { spawnFunctionDraft } from "./scrowlStore";
type Props = {
// TODO
@ -15,15 +16,23 @@ export function Controls(props: Props) {
<article>
<header>Controls</header>
<fieldset>
<label>
<input type="checkbox" role="switch" checked />
Auto-evaluate
</label>
<button class="secondary outline" style={{ width: "100%" }}>
Clear All
<div style={{ display: "flex", gap: "0.5rem", "flex-wrap": "wrap" }}>
<button
class="outline secondary"
onClick={spawnFunctionDraft}
style={{ padding: "2px 8px", "font-size": "0.8rem", width: "auto" }}
>
+fn
</button>
</fieldset>
<button
class="outline secondary"
style={{ padding: "2px 8px", "font-size": "0.8rem", width: "auto" }}
disabled
>
+signal
</button>
</div>
<footer>
<small>Language v0.1.0</small>