import clsx from "clsx"; import { Children } from "react"; import "./ScrollableList.scss"; interface ScrollableListProps { className?: string; placeholder: string; children: React.ReactNode; } export const ScrollableList = ({ className, placeholder, children, }: ScrollableListProps) => { const isEmpty = !Children.count(children); return (
{isEmpty ?
{placeholder}
: children}
); };