import type { Signal } from "@preact/signals"; import { Button } from "@components/Button.tsx"; import { IconCircleMinus, IconCirclePlus } from "@components/icons.tsx"; interface CounterProps { count: Signal; } export default function Counter(props: CounterProps) { props.count.value = Math.max(1, props.count.value); return (
props.count.value = ev.target?.value} />
); }