mirror of
https://github.com/portainer/portainer.git
synced 2026-06-23 04:30:16 +00:00
19 lines
416 B
TypeScript
19 lines
416 B
TypeScript
import { PropsWithChildren } from 'react';
|
|
|
|
export function PageTitle({
|
|
title,
|
|
children,
|
|
}: PropsWithChildren<{ title: string }>) {
|
|
return (
|
|
<div className="mx-5 mb-2 flex items-center gap-2">
|
|
<h1
|
|
className="m-0 text-lg font-medium text-gray-11 th-highcontrast:text-white th-dark:text-white"
|
|
data-cy="page-title"
|
|
>
|
|
{title}
|
|
</h1>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|