import Dialog from "./Dialog.js"; type CellResult = | ["target", "any" | number] | ["mirror", "none"] | ["mirror", number, "left" | "right"] ; export default class CellDialog extends Dialog { render() { this.body.innerHTML = `

Place a target:

Place a mirror:

`; this.renderCancel(); } extract(button: string): CellResult { return button.split("-") as CellResult; } }