chatBar.js 513 B

12345678910111213141516171819
  1. import { Button } from "@mui/material"
  2. import { Box } from "@mui/system"
  3. export const ChatBar = ({ chat_title, onInfo }) => {
  4. return (
  5. <Box
  6. sx={{
  7. display: 'flex',
  8. alignItems: 'center',
  9. justifyContent: 'space-between',
  10. color: 'white',
  11. }}
  12. >
  13. <span>{chat_title}</span>
  14. <Button onClick={() => onInfo()} variant="text" sx={{ color: "white", }}>Инфо</Button>
  15. </Box >
  16. )
  17. }