mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 10:11:35 +10:00
29 lines
652 B
TypeScript
29 lines
652 B
TypeScript
import React from 'react';
|
|
|
|
import { cn } from '@documenso/ui/lib/utils';
|
|
|
|
export type SettingsHeaderProps = {
|
|
title: string;
|
|
subtitle: string;
|
|
children?: React.ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
export const SettingsHeader = ({ children, title, subtitle, className }: SettingsHeaderProps) => {
|
|
return (
|
|
<>
|
|
<div className={cn('flex flex-row items-center justify-between', className)}>
|
|
<div>
|
|
<h3 className="text-lg font-medium">{title}</h3>
|
|
|
|
<p className="text-muted-foreground text-sm md:mt-2">{subtitle}</p>
|
|
</div>
|
|
|
|
{children}
|
|
</div>
|
|
|
|
<hr className="my-4" />
|
|
</>
|
|
);
|
|
};
|