mirror of
https://github.com/tlsnotary/website.git
synced 2026-01-09 14:58:09 -05:00
21 lines
644 B
TypeScript
21 lines
644 B
TypeScript
import { HTMLAttributes } from "react";
|
|
import { Label } from "./ui/Label";
|
|
import { AppMarkdown } from "./AppMarkdown";
|
|
|
|
interface SectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
title: string;
|
|
description?: string;
|
|
}
|
|
|
|
export const Section = ({ title, description, children }: SectionProps) => {
|
|
return (
|
|
<div className="flex flex-col gap-6 md:gap-16">
|
|
<div className="flex flex-col gap-4 md:gap-8">
|
|
<Label.SectionTitle className="text-center">{title}</Label.SectionTitle>
|
|
{description && <AppMarkdown>{description}</AppMarkdown>}
|
|
</div>
|
|
{children && <div>{children}</div>}
|
|
</div>
|
|
);
|
|
};
|