excalidraw/src/components/UserList.tsx

24 lines
450 B
TypeScript

import "./UserList.css";
import React from "react";
type UserListProps = {
children: React.ReactNode;
className?: string;
mobile?: boolean;
};
export const UserList = ({ children, className, mobile }: UserListProps) => {
let compClassName = "UserList";
if (className) {
compClassName += ` ${className}`;
}
if (mobile) {
compClassName += " UserList_mobile";
}
return <div className={compClassName}>{children}</div>;
};