mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
18 lines
398 B
TypeScript
18 lines
398 B
TypeScript
|
import { PropsWithChildren } from 'react';
|
||
|
|
||
|
import { useWidgetContext } from './Widget';
|
||
|
|
||
|
export const rdWidgetFooter = {
|
||
|
requires: '^rdWidget',
|
||
|
transclude: true,
|
||
|
template: `
|
||
|
<div class="widget-footer" ng-transclude></div>
|
||
|
`,
|
||
|
};
|
||
|
|
||
|
export function WidgetFooter({ children }: PropsWithChildren<unknown>) {
|
||
|
useWidgetContext();
|
||
|
|
||
|
return <div className="widget-footer">{children}</div>;
|
||
|
}
|