mirror of
https://github.com/documenso/documenso.git
synced 2026-07-13 22:37:24 +10:00
138d663c25
Merge origin/main into feat/external-2fa-codes. Resolve formatting conflicts caused by biome rollout; preserve both feature streams: PR's external 2FA token + signing-session 2FA proof additions plus main's RateLimit/RecipientExpired/signingReminders/date-auto-insert. In complete-document-with-token.ts, drop the duplicate early field-fetching block introduced when main moved that logic later with date auto-insert support; keep the EXTERNAL_TWO_FACTOR_AUTH check using derivedRecipientActionAuth.
29 lines
748 B
TypeScript
29 lines
748 B
TypeScript
import { cn } from '@documenso/ui/lib/utils';
|
|
import type React from 'react';
|
|
|
|
export type SettingsHeaderProps = {
|
|
title: string | React.ReactNode;
|
|
subtitle: string | React.ReactNode;
|
|
hideDivider?: boolean;
|
|
children?: React.ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
export const SettingsHeader = ({ children, title, subtitle, className, hideDivider }: SettingsHeaderProps) => {
|
|
return (
|
|
<>
|
|
<div className={cn('flex flex-row items-center justify-between', className)}>
|
|
<div>
|
|
<h3 className="font-medium text-lg">{title}</h3>
|
|
|
|
<p className="text-muted-foreground text-sm md:mt-2">{subtitle}</p>
|
|
</div>
|
|
|
|
{children}
|
|
</div>
|
|
|
|
{!hideDivider && <hr className="my-4" />}
|
|
</>
|
|
);
|
|
};
|