1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-18 21:09:40 +02:00
portainer/app/react/components/Widget/WidgetTitle.tsx
Ali 4ee349bd6b feat(helm): helm actions [r8s-259] (#715)
Co-authored-by: James Player <james.player@portainer.io>
Co-authored-by: Cara Ryan <cara.ryan@portainer.io>
Co-authored-by: stevensbkang <skan070@gmail.com>
2025-05-13 22:15:04 +12:00

29 lines
672 B
TypeScript

import clsx from 'clsx';
import { PropsWithChildren, ReactNode } from 'react';
import { WidgetIcon } from './WidgetIcon';
interface Props {
title: ReactNode;
icon: ReactNode;
className?: string;
}
export function WidgetTitle({
title,
icon,
className,
children,
}: PropsWithChildren<Props>) {
return (
<div className="widget-header">
<div className="row">
<span className={clsx('pull-left vertical-center', className)}>
<WidgetIcon icon={icon} />
<h2 className="text-base m-0 ml-1">{title}</h2>
</span>
<span className={clsx('pull-right', className)}>{children}</span>
</div>
</div>
);
}