mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-03 22:17:05 +01:00
- Add @~/.claude/CLAUDE.md import for global engineering standards - Update Last Updated date to 2026-01-23 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
636 B
TypeScript
29 lines
636 B
TypeScript
import { type FC, type ReactNode } from 'react';
|
|
|
|
interface BotSectionProps {
|
|
id: string;
|
|
children: ReactNode;
|
|
className?: string;
|
|
isLast?: boolean;
|
|
}
|
|
|
|
/**
|
|
* Standardized section wrapper for bot pages
|
|
* Provides consistent spacing, scroll-margin for navigation, and section IDs
|
|
*/
|
|
export const BotSection: FC<BotSectionProps> = ({
|
|
id,
|
|
children,
|
|
className = '',
|
|
isLast = false,
|
|
}) => {
|
|
const baseClasses = 'scroll-mt-24';
|
|
const spacingClasses = isLast ? 'mb-24' : 'my-16';
|
|
|
|
return (
|
|
<section id={id} className={`${baseClasses} ${spacingClasses} ${className}`.trim()}>
|
|
{children}
|
|
</section>
|
|
);
|
|
};
|