import React, { useMemo } from 'react'; import { useHMSTheme } from '../../hooks/HMSThemeProvider'; import { hmsUiClassParserGenerator } from '../../utils/classes'; import { Text } from '../Text'; interface Props { username?: string; classes?: FirstPersonDisplayClasses; } interface FirstPersonDisplayClasses { root: string; rootBg: string; } export const FirstPersonDisplay: React.FC = ({ username = '', classes, }) => { const defaultClasses: FirstPersonDisplayClasses = { root: `h-full text-white flex items-center justify-center`, rootBg: `w-37.5 h-42.5 rounded-2xl relative flex flex-col text-center space-y-4 pt-44 items-center`, }; const { tw } = useHMSTheme(); const styler = useMemo( () => hmsUiClassParserGenerator({ tw, classes, defaultClasses, tag: 'hmsui-first-person-display', }), [], ); return (
Welcome, {username} !
You’re the first one here. Sit back and relax till the others join.
); };