#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
import type { ReactNode } from "react";
import { Logo } from "@editor/ui/Logo";
import styles from "@editor/components/shared/setupCard/SetupCard.module.css";
interface SetupCardLayoutProps {
title: ReactNode;
subtitle?: ReactNode;
children: ReactNode;
}
/** Header and body of a step in a centred setup card (AuthShell). */
export function SetupCardLayout({
title,
subtitle,
children,
}: SetupCardLayoutProps) {
return (
<>
<header className={styles.header}>
<Logo variant="iconOnly" iconHeight="2.5rem" />
<div className={styles.headerText}>
<h1 className={styles.title}>{title}</h1>
{subtitle && <p className={styles.subtitle}>{subtitle}</p>}
</div>
</header>
<div className={styles.body}>{children}</div>
</>
);
}