import { Component } from "https://deno.land/x/tui@2.1.11/src/component.ts";
Destroys component:
- Disables all listeners
- Removes all
drawnObjects
- calls
destroy()
on its children - Removes itself from
subComponentOf.subComponents
- Removes itself from
parent.children