* feat: add widget definition system * fix: wrong typecheck command in turbo generator * chore: fix formatting * feat: add widget preview page * chore: fix formatting and type errors * chore: fix from widget edit modal and remove some never casts * chore: address pull request feedback
8 lines
194 B
TypeScript
8 lines
194 B
TypeScript
import type { WidgetComponentProps } from "../definition";
|
|
|
|
export default function ClockWidget({
|
|
options,
|
|
}: WidgetComponentProps<"clock">) {
|
|
return <pre>{JSON.stringify(options)}</pre>;
|
|
}
|