UNPKG

opendash

Version:

open.DASH data visualization framework

10 lines (6 loc) 239 B
import * as React from "react"; import { useWidgetTypes } from ".."; import { WidgetTypeInterface } from ".."; export function useWidgetType(type: string): WidgetTypeInterface { return useWidgetTypes().find(wt => wt.type === type); }