14 lines
282 B
TypeScript
14 lines
282 B
TypeScript
import React from 'react';
|
|
|
|
export interface SectionProps {
|
|
children?: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export const Section: React.FC<SectionProps> = ({
|
|
children,
|
|
className = '',
|
|
}) => {
|
|
return <section className={`section ${className}`}>{children}</section>;
|
|
};
|
|
|