30 lines
814 B
TypeScript
30 lines
814 B
TypeScript
// @generated by camino-codegen-ts-runtime. Do not edit.
|
|
import {
|
|
createWebStudioComponent,
|
|
type ReactComponentHostProps,
|
|
type ObjectRef,
|
|
} from "@quixos/web-studio-react-runtime";
|
|
|
|
export type TodoReactComponentRenderProps = {
|
|
"selected"?: boolean;
|
|
"compact"?: boolean;
|
|
};
|
|
|
|
export type TodoReactComponentAction = {
|
|
"type"?: TodoReactComponentActionType;
|
|
};
|
|
|
|
export type TodoReactComponentActionType = "TODO_REACT_COMPONENT_ACTION_TYPE_UNSPECIFIED" | "SELECT";
|
|
|
|
export type TodoComponentProps = {
|
|
forObject: ObjectRef<"atom:task">;
|
|
} & TodoReactComponentRenderProps & ReactComponentHostProps<TodoReactComponentAction>;
|
|
|
|
export const TodoComponent = createWebStudioComponent<
|
|
ObjectRef<"atom:task">,
|
|
TodoReactComponentRenderProps,
|
|
TodoReactComponentAction
|
|
>({
|
|
expectedAtomId: "atom:task",
|
|
});
|