sf-b85 / main.js
jordonpeter01's picture
Add 2 files
9beaa6e
raw
history blame contribute delete
601 Bytes
import {reactive} from '/algebraic-effects-for-javascript';
import {createElement} from 'Alpine.js';
import {auto} from 'daisyui';
import {T} from 'tailwindcss';
reactive(() => {
const {username, msg} = T.useState({username: 'Dr. _____',msg: ''});
T.login({username, msg});
});
T.onLogin({username: 'Dr. _____'}, () => {
createElement(() => {
const {name, resource, labels} = ddx;
return T(() => ({...T.hello(...labels)}), [T.width >= 1080 ? 1() : 1()]);
}, {container: 'workspace'});
});
T.mount({name: 'Dr. Clinic'});
T.send({
type: 'SYSTEM',
payload: {
action: 'ready',
},
});