mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 02:09:08 +03:00
23 lines
480 B
TypeScript
23 lines
480 B
TypeScript
import React from 'react';
|
|
import { Box, Text } from '@chakra-ui/react';
|
|
|
|
export interface IInfoProps {
|
|
fullname: string;
|
|
lastMessage: string;
|
|
}
|
|
|
|
const Info: React.FC<IInfoProps> = ({ fullname, lastMessage }) => {
|
|
return (
|
|
<Box ml='4'>
|
|
<Text fontWeight={'semibold'}>
|
|
{fullname} <br />
|
|
<Text as={'span'} fontWeight='normal' fontSize={'sm'} color='gray.500'>
|
|
{lastMessage}
|
|
</Text>
|
|
</Text>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export { Info };
|