///
import { Cell, computed, Default, NAME, pattern, UI } from "commontools";
interface Event {
title: Cell;
date: Cell;
time: Cell>;
notes: Cell>;
}
interface Input {
event: Event;
}
/** #event */
interface Output {
event: Event;
}
export default pattern(({ event }) => {
return {
[NAME]: computed(() => `Event: ${event.title}`),
[UI]: (
{event.title || "New Event"}
),
event,
};
});