Files
gridpilot.gg/apps/website/components/profile/ProfileSection.tsx
2026-01-18 22:55:55 +01:00

26 lines
569 B
TypeScript

'use client';
import { SectionHeader } from '@/ui/SectionHeader';
import React from 'react';
interface ProfileSectionProps {
title: string;
description?: string;
action?: React.ReactNode;
children: React.ReactNode;
}
export function ProfileSection({ title, description, action, children }: ProfileSectionProps) {
return (
<section style={{ marginBottom: '2rem' }}>
<SectionHeader
title={title}
description={description}
actions={action}
variant="minimal"
/>
<div>{children}</div>
</section>
);
}