mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
24 lines
533 B
TypeScript
24 lines
533 B
TypeScript
import { ReactNode } from 'react';
|
|
|
|
import styles from './expanded-list-container.module.css';
|
|
|
|
const EXPANDED_HEIGHT = 300;
|
|
|
|
export interface ExpandedListContainerProps {
|
|
children: ReactNode;
|
|
}
|
|
|
|
export const ExpandedListContainer = ({ children }: ExpandedListContainerProps) => {
|
|
return (
|
|
<div
|
|
className={styles.listExpandedContainer}
|
|
style={{
|
|
height: EXPANDED_HEIGHT,
|
|
overflow: 'auto',
|
|
}}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|