Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
21 lines
610 B
TypeScript
21 lines
610 B
TypeScript
import { IconNotes } from "@tabler/icons-react";
|
|
|
|
import { createWidgetDefinition } from "../definition";
|
|
import { optionsBuilder } from "../options";
|
|
|
|
export const { definition, componentLoader } = createWidgetDefinition("anchorNote", {
|
|
icon: IconNotes,
|
|
supportedIntegrations: ["anchor"],
|
|
createOptions() {
|
|
return optionsBuilder.from((factory) => ({
|
|
noteId: factory.anchorNote(),
|
|
showTitle: factory.switch({
|
|
defaultValue: true,
|
|
}),
|
|
showUpdatedAt: factory.switch({
|
|
defaultValue: true,
|
|
}),
|
|
}));
|
|
},
|
|
}).withDynamicImport(() => import("./component"));
|