import { widgetRegistryMetas as clockMetas } from 'widgets/Clock';
import { widgetRegistryMetas as weatherMetas } from 'widgets/Weather';
import { widgetRegistryMetas as pomodoroMetas } from 'widgets/Pomodoro';
import { widgetRegistryMetas as dailyGoalsMetas } from 'widgets/DailyGoals';
import { widgetRegistryMetas as quickNotesMetas } from 'widgets/QuickNotes';
import { widgetRegistryMetas as musicPlayerMetas } from 'widgets/MusicPlayer';
import { useWidgetRegistry } from './useWidgetRegistry';

const widgets = [
  ...clockMetas,
  ...weatherMetas,
  ...pomodoroMetas,
  ...dailyGoalsMetas,
  ...quickNotesMetas,
  ...musicPlayerMetas,
];

export const WidgetRegistry = () => {
  useWidgetRegistry(widgets);
  return null;
};
