/// <cts-enable />
import { cell, derive } from "commontools";

export default function TestDerive() {
  const value = cell(10);
  const multiplier = cell(2);
  const offset = cell(5);

  const result = derive(value, (v) => (v.get() * multiplier.get()) + offset.get());

  return result;
}
