useWidgetConfig
Hook that returns the whole widget configuration. This basically translates to the mobro-widget-config.json
.
Returns
The content of the mobro-widget-config.json.
Example
src/widgets/example/Example.tsx
import React from 'react'
import {useWidgetConfig} from '@modbros/dashboard-sdk'
export default function Example() {
const widgetConfig = useWidgetConfig()
return null
}