* fix: nextjs slow compile time * fix: change optimized package imports and transpile packages * fix: format issue
21 lines
597 B
TypeScript
21 lines
597 B
TypeScript
import { IconDeviceCctv } from "@tabler/icons-react";
|
|
|
|
import { createWidgetDefinition } from "../definition";
|
|
import { optionsBuilder } from "../options";
|
|
|
|
export const { definition, componentLoader } = createWidgetDefinition("video", {
|
|
icon: IconDeviceCctv,
|
|
options: optionsBuilder.from((factory) => ({
|
|
feedUrl: factory.text({
|
|
defaultValue: "",
|
|
}),
|
|
hasAutoPlay: factory.switch({
|
|
withDescription: true,
|
|
}),
|
|
isMuted: factory.switch({
|
|
defaultValue: true,
|
|
}),
|
|
hasControls: factory.switch(),
|
|
})),
|
|
}).withDynamicImport(() => import("./component"));
|