a6cbcc273e
Made-with: Cursor
19 lines
496 B
TypeScript
19 lines
496 B
TypeScript
import React from 'react';
|
|
|
|
import styles from './Surface.module.css';
|
|
|
|
type Props = {
|
|
children: React.ReactNode;
|
|
/** Разрешено `undefined` из CSS-модулей при `exactOptionalPropertyTypes`. */
|
|
className?: string | undefined;
|
|
style?: React.CSSProperties | undefined;
|
|
};
|
|
|
|
export function Surface({ children, className, style }: Props) {
|
|
return (
|
|
<div className={[styles.root, className].filter(Boolean).join(' ')} style={style}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|