Files
Homarr/src/widgets/WidgetWrapper.tsx

19 lines
611 B
TypeScript
Raw Normal View History

import { ReactNode } from 'react';
import { HomarrCardWrapper } from '../components/Dashboard/Tiles/HomarrCardWrapper';
import { WidgetsMenu } from '../components/Dashboard/Tiles/Widgets/WidgetsMenu';
import { IWidget } from './widgets';
interface WidgetWrapperProps {
widgetId: string;
widget: IWidget<string, any>;
className: string;
children: ReactNode;
}
2022-12-31 17:48:46 +01:00
export const WidgetWrapper = ({ widgetId, widget, className, children }: WidgetWrapperProps) => (
2023-01-06 01:11:02 +09:00
<HomarrCardWrapper className={className}>
<WidgetsMenu integration={widgetId} widget={widget} />
{children}
</HomarrCardWrapper>
);