diff options
author | Joris | 2023-09-16 18:28:16 +0200 |
---|---|---|
committer | Joris | 2023-09-16 18:31:24 +0200 |
commit | 06f045e90bb57c36738e58ee6830e2a2391bc6a3 (patch) | |
tree | a5b65b048c103b4ea0e5d3c0fa5e115cbaf3cf5f /src/view/components | |
parent | 230f2e0623d22af6e68466884bd5dea5dcb846dc (diff) |
Migrate CLI to python
Diffstat (limited to 'src/view/components')
-rw-r--r-- | src/view/components/modal.ts | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/view/components/modal.ts b/src/view/components/modal.ts deleted file mode 100644 index 5e845e1..0000000 --- a/src/view/components/modal.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { h, Html } from 'lib/rx' - -interface Params { - header: Html - body: Html - onClose: () => void - onmount?: (element: Element) => void - onunmount?: (element: Element) => void -} - -export function view({ header, body, onClose, onmount, onunmount }: Params): Html { - return h('div', - { className: 'g-Modal', - onclick: () => onClose(), - onmount: (element: Element) => onmount && onmount(element), - onunmount: (element: Element) => onunmount && onunmount(element) - }, - h('div', - { className: 'g-Modal__Content', - onclick: (e: Event) => e.stopPropagation() - }, - h('div', - { className: 'g-Modal__Header' }, - header, - h('button', - { className: 'g-Modal__Close', - onclick: () => onClose() - }, - '✕' - ) - ), - h('div', - { className: 'g-Modal__Body' }, - body - ) - ) - ) -} |