///
import { handler, Cell } from "commontools";
interface TimedEvent {
timestamp: Date;
}
interface TimedState {
lastUpdate: Cell;
}
const timedHandler = handler((event, state) => {
state.lastUpdate.set(event.timestamp);
});
export { timedHandler };