{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "app-messenger",
  "type": "registry:item",
  "title": "App Messenger",
  "description": "A app-messenger item.",
  "dependencies": [
    "@mui/material",
    "@emotion/react",
    "@emotion/styled",
    "@mui/icons-material"
  ],
  "registryDependencies": [
    "https://www.mui-treasury.com/r/layout-core.json"
  ],
  "files": [
    {
      "path": "layout/app-messenger/app-messenger.tsx",
      "target": "src/mui-treasury/layout/app-messenger/app-messenger.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport Box from '@mui/material/Box';\nimport Container from '@mui/material/Container';\nimport CssBaseline from '@mui/material/CssBaseline';\nimport Toolbar from '@mui/material/Toolbar';\nimport {\n  ThemeProvider,\n  createTheme,\n  responsiveFontSizes,\n  styled,\n} from '@mui/material/styles';\n\nimport {\n  Content,\n  EdgeSidebar,\n  EdgeSidebarContent,\n  Footer,\n  Header,\n  InsetAvoidingView,\n  InsetContent,\n  InsetSidebar,\n  Root,\n} from '../layout-core';\nimport {\n  ChatBar,\n  ChatDialog,\n  ChatList,\n  ChatSettings,\n  ChatsHeader,\n  ConversationHead,\n  MessengerSearch,\n} from './components';\n\nconst StyledHeader = styled(Header)(() => ({\n  boxShadow: '0 1px 2px 0 rgba(0, 0, 0, .10)',\n  backgroundColor: '#ffffff',\n}));\n\nconst theme = responsiveFontSizes(\n  createTheme({\n    palette: {\n      primary: {\n        main: 'rgb(0, 153, 255)',\n      },\n      background: {\n        default: '#fff',\n      },\n    },\n    typography: {\n      fontFamily:\n        '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"',\n      body1: {\n        fontSize: `${15 / 16}rem`,\n      },\n    },\n    components: {\n      MuiCssBaseline: {\n        styleOverrides: {\n          'strong, b': {\n            fontWeight: 'bold',\n          },\n        },\n      },\n    },\n  }),\n);\n// @ts-expect-error theme uses vars in MUI but this layout needs it nullified\ntheme.vars = null;\n\nexport function LayoutV6AppMessenger() {\n  return (\n    <ThemeProvider theme={theme}>\n      <CssBaseline />\n      <Root standalone>\n        <StyledHeader height=\"64px\" sx={{ position: 'relative' }}>\n          <Toolbar disableGutters sx={{ flex: 'auto' }}>\n            <ConversationHead />\n          </Toolbar>\n        </StyledHeader>\n        <EdgeSidebar\n          permanentAutoCollapse=\"md\"\n          variant={{\n            xs: [\n              'permanent',\n              {\n                width: '25cqw',\n                collapsedWidth: '80px',\n              },\n            ],\n          }}\n        >\n          <EdgeSidebarContent>\n            <ChatsHeader />\n            <Box\n              sx={{\n                p: '4px 16px 12px',\n              }}\n            >\n              <MessengerSearch />\n            </Box>\n            <ChatList />\n          </EdgeSidebarContent>\n        </EdgeSidebar>\n        <Content>\n          <ChatDialog />\n          <InsetSidebar position=\"absolute\" width=\"25cqw\">\n            <InsetContent>\n              <ChatSettings />\n            </InsetContent>\n          </InsetSidebar>\n        </Content>\n        <Footer>\n          <Container disableGutters>\n            <InsetAvoidingView>\n              <Box\n                sx={{\n                  display: 'flex',\n                  alignItems: 'center',\n                  p: 1,\n                }}\n              >\n                <ChatBar />\n              </Box>\n            </InsetAvoidingView>\n          </Container>\n        </Footer>\n      </Root>\n    </ThemeProvider>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/ChatBar.tsx",
      "target": "src/mui-treasury/layout/app-messenger/components/ChatBar.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport AddCircle from '@mui/icons-material/AddCircle';\nimport Gif from '@mui/icons-material/Gif';\nimport ImageIcon from '@mui/icons-material/Image';\nimport Note from '@mui/icons-material/Note';\nimport TagFaces from '@mui/icons-material/TagFaces';\nimport ThumbUp from '@mui/icons-material/ThumbUp';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport InputBase from '@mui/material/InputBase';\n\ninterface ChatBarProps {\n  concise?: boolean;\n}\n\nconst ChatBar = ({ concise }: ChatBarProps) => {\n  const styles = {\n    icon: {\n      color: 'rgb(0, 153, 255)',\n      width: 44,\n      height: 44,\n      padding: '6px',\n      '&:not(:first-child)': {\n        marginLeft: '4px',\n      },\n    },\n    input: {\n      flex: 'auto',\n      borderRadius: '40px',\n      paddingLeft: '16px',\n      backgroundColor: 'rgba(0,0,0,0.04)',\n      margin: '0 8px',\n      height: 36,\n      fontSize: 13,\n    },\n  };\n  return (\n    <>\n      <AddCircle sx={styles.icon} />\n      {!concise && (\n        <>\n          <Gif sx={styles.icon} />\n          <Note sx={styles.icon} />\n          <ImageIcon sx={styles.icon} />\n        </>\n      )}\n      <InputBase\n        placeholder={'Type a message...'}\n        endAdornment={\n          <InputAdornment position={'end'}>\n            <TagFaces sx={styles.icon} />\n          </InputAdornment>\n        }\n        sx={styles.input}\n      />\n      <ThumbUp sx={styles.icon} />\n    </>\n  );\n};\n\nexport default ChatBar;\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/ChatDialog.tsx",
      "target": "src/mui-treasury/layout/app-messenger/components/ChatDialog.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport Box from '@mui/material/Box';\nimport Typography from '@mui/material/Typography';\n\nimport ChatMsg from './ChatMsg';\n\nconst AVATAR = 'https://i.pravatar.cc/300?img=13';\n\nconst ChatDialog = () => {\n  return (\n    <Box\n      sx={{\n        p: '16px 30px 12px 10px',\n      }}\n    >\n      <ChatMsg\n        avatar={AVATAR}\n        messages={[\n          'Hi Jenny, How r u today?',\n          'Did you train yesterday',\n          'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Volutpat lacus laoreet non curabitur gravida.',\n        ]}\n      />\n      <Typography\n        sx={{\n          fontWeight: 500,\n          color: 'rgba(0,0,0,0.4)',\n          margin: '12px 0',\n          fontSize: 12,\n          textAlign: 'center',\n        }}\n      >\n        FRI 1:46 PM\n      </Typography>\n      <ChatMsg\n        side={'right'}\n        messages={[\n          \"Great! What's about you?\",\n          'Of course I did. Speaking of which check this out',\n          {\n            type: 'image',\n            alt: 'sticker',\n            src: 'https://www.messenger.com/stickers/asset/?sticker_id=702110433208381&image_type=BestEffortImage',\n          },\n          'Commodo ullamcorper a lacus vestibulum sed arcu. Sed faucibus turpis in eu mi bibendum neque egestas. Maecenas volutpat blandit aliquam etiam erat velit. Massa placerat duis ultricies lacus sed turpis tincidunt id aliquet. Suspendisse sed nisi lacus sed viverra.',\n        ]}\n      />\n      <Typography\n        sx={{\n          fontWeight: 500,\n          color: 'rgba(0,0,0,0.4)',\n          margin: '12px 0',\n          fontSize: 12,\n          textAlign: 'center',\n        }}\n      >\n        FRI 4:18 PM\n      </Typography>\n      <ChatMsg\n        avatar={AVATAR}\n        messages={[\n          'Im good.',\n          'See u later.',\n          {\n            type: 'image',\n            alt: 'sticker',\n            src: 'https://scontent.fbkk12-3.fna.fbcdn.net/v/t39.1997-6/47165057_2150118098374296_5034322199196991488_n.png?_nc_cat=1&_nc_eui2=AeGsL8WciYpwOySYRQINElIdV9NubJ7ZbWTW9J5-DlXHPiLCKR8Zvvd4nVyPH4Wa8kceFiL10mXvokNFcEJx9JWz-6XLYgCLmOgTniFDbSjUPw&_nc_ohc=pewFeK6M1ZIAQkL5L9QR2FZcwYjZ0FTWid2zHeUqboLU4azOITkLVGaog&_nc_ht=scontent.fbkk12-3.fna&oh=27a2a48aabccd4cdae4ec4f3f775daa9&oe=5EAF0F3B',\n          },\n        ]}\n      />\n    </Box>\n  );\n};\n\nexport default ChatDialog;\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/ChatList.tsx",
      "target": "src/mui-treasury/layout/app-messenger/components/ChatList.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport ChatListItem from './ChatListItem';\n\nconst data = [\n  {\n    avatar: 'https://i.pravatar.cc/300?img=11',\n    name: 'Jordyn Frank',\n    info: 'You sent a photo \\u2022 2:04 PM',\n    responded: true,\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=12',\n    name: 'Marwan Combs',\n    info: 'Where r u? \\u2022 1:54 PM',\n    bold: true,\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=13',\n    name: 'Imaad Casey',\n    info: 'You: Good to see u \\u2022 SAT',\n    active: true,\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=14',\n    name: 'Philip Rhodes',\n    info: 'You: Lorem ipsum \\u2022 THU',\n    responded: true,\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=15',\n    name: 'Chardonnay Raymond',\n    info: 'Chardonnay called you \\u2022 THU',\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=16',\n    name: 'Akram Farmer',\n    info: 'You: still look forw... \\u2022 THU',\n    responded: true,\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=17',\n    name: 'Nichola Mackie',\n    info: 'You: https://mui... \\u2022 DEC 10',\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=18',\n    name: 'Ines Page',\n    info: 'You called Ines \\u2022 DEC 9',\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=19',\n    name: 'Ephraim Gonzalez',\n    info: 'I think you can d... \\u2022 DEC 9',\n    responded: true,\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=20',\n    name: 'Tyrell Stark',\n    info: 'Okay, I think... \\u2022 DEC 6',\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=21',\n    name: 'Tasha Whitmore',\n    info: 'You sent an attach... \\u2022 NOV 30',\n  },\n  {\n    avatar: 'https://i.pravatar.cc/300?img=22',\n    name: 'Hawwa Davenport',\n    info: 'okay kub \\u2022 NOV 28',\n  },\n];\n\ninterface ChatListProps {\n  concise?: boolean;\n}\n\nconst ChatList = ({ concise }: ChatListProps) => {\n  return (\n    <>\n      {data.map((item) => (\n        <ChatListItem key={item.name} {...item} concise={concise} />\n      ))}\n    </>\n  );\n};\n\nexport default ChatList;\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/ChatListItem.tsx",
      "target": "src/mui-treasury/layout/app-messenger/components/ChatListItem.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport MoreHoriz from '@mui/icons-material/MoreHoriz';\nimport Avatar from '@mui/material/Avatar';\nimport Box from '@mui/material/Box';\nimport ListItemButton from '@mui/material/ListItemButton';\nimport ListItemText from '@mui/material/ListItemText';\n\ninterface ChatListItemProps {\n  bold?: boolean;\n  active?: boolean;\n  avatar?: string;\n  name?: string;\n  info?: string;\n  responded?: boolean;\n  concise?: boolean;\n}\n\nconst ChatListItem = ({\n  bold,\n  active,\n  avatar,\n  name,\n  info,\n  responded,\n  concise,\n}: ChatListItemProps) => {\n  return (\n    <Box\n      sx={{\n        px: 1,\n      }}\n    >\n      <ListItemButton\n        sx={{\n          paddingLeft: '8px',\n          paddingRight: '8px',\n          borderRadius: '10px',\n          ...(active && {\n            backgroundColor: 'rgba(0, 0, 0, .05)',\n          }),\n          '&:hover': {\n            '& .ChatListItem-dot': {\n              display: 'none',\n            },\n            '& .ChatListItem-responded': {\n              display: 'none',\n            },\n            '& .ChatListItem-more': {\n              visibility: 'visible',\n            },\n          },\n        }}\n      >\n        <Avatar\n          src={avatar}\n          sx={{ width: 50, height: 50, marginRight: '12px' }}\n        />\n        {!concise && (\n          <>\n            <ListItemText\n              primary={name}\n              secondary={info}\n              slotProps={{\n                primary: {\n                  noWrap: true,\n                  sx: { ...(bold && { fontWeight: 'bold' }) },\n                },\n\n                secondary: {\n                  noWrap: true,\n                  sx: {\n                    fontSize: 13,\n                    color: '#999',\n                    ...(bold && {\n                      fontWeight: 'bold',\n                      color: 'text.primary',\n                    }),\n                  },\n                },\n              }}\n            />\n            <Box\n              sx={{\n                position: 'relative',\n              }}\n            >\n              <MoreHoriz\n                className=\"ChatListItem-more\"\n                sx={{ visibility: 'hidden', fontSize: 20 }}\n              />\n              {bold && (\n                <Box\n                  className=\"ChatListItem-dot\"\n                  sx={{\n                    width: 12,\n                    height: 12,\n                    backgroundColor: '#09f',\n                    borderRadius: '50%',\n                    position: 'absolute',\n                    top: '50%',\n                    left: '50%',\n                    transform: 'translate(-50%, -50%)',\n                  }}\n                />\n              )}\n              {responded && (\n                <Avatar\n                  src={avatar}\n                  className=\"ChatListItem-responded\"\n                  sx={{\n                    position: 'absolute',\n                    top: '50%',\n                    left: '50%',\n                    transform: 'translate(-50%, -50%)',\n                    width: 16,\n                    height: 16,\n                  }}\n                />\n              )}\n            </Box>\n          </>\n        )}\n      </ListItemButton>\n    </Box>\n  );\n};\n\nexport default ChatListItem;\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/ChatMsg.tsx",
      "target": "src/mui-treasury/layout/app-messenger/components/ChatMsg.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport MoreHoriz from '@mui/icons-material/MoreHoriz';\nimport Reply from '@mui/icons-material/Reply';\nimport TagFaces from '@mui/icons-material/TagFaces';\nimport Avatar from '@mui/material/Avatar';\nimport Box from '@mui/material/Box';\nimport Grid from '@mui/material/Grid';\nimport IconButton from '@mui/material/IconButton';\nimport Typography from '@mui/material/Typography';\nimport { useTheme } from '@mui/material/styles';\n\ntype ChatMessage =\n  | string\n  | { type: 'image'; alt: string; src: string; [key: string]: unknown };\n\ninterface ChatMsgProps {\n  avatar?: string;\n  messages?: ChatMessage[];\n  side?: 'left' | 'right';\n}\n\nconst ChatMsg = ({\n  avatar = '',\n  messages = [],\n  side = 'left',\n}: ChatMsgProps) => {\n  const { spacing, palette } = useTheme();\n  const radius = spacing(2.5);\n  const rightBgColor = palette.primary.main;\n  const attachClass = (index: number) => {\n    if (index === 0) {\n      return {\n        leftFirst: {\n          borderTopLeftRadius: radius,\n        },\n        rightFirst: {\n          borderTopRightRadius: radius,\n        },\n      }[`${side}First`];\n    }\n    if (index === messages.length - 1) {\n      return {\n        leftLast: {\n          borderBottomLeftRadius: radius,\n        },\n        rightLast: {\n          borderBottomRightRadius: radius,\n        },\n      }[`${side}Last`];\n    }\n    return '';\n  };\n  return (\n    <Grid\n      container\n      spacing={2}\n      sx={{\n        justifyContent: side === 'right' ? 'flex-end' : 'flex-start',\n      }}\n    >\n      {side === 'left' && (\n        <Grid size=\"auto\">\n          <Avatar src={avatar} sx={{ width: 30, height: 30 }} />\n        </Grid>\n      )}\n      <Grid size=\"grow\">\n        {messages.map((msg, i) => {\n          const key = typeof msg === 'string' ? i : msg.src || i;\n          return (\n            <Box\n              key={key}\n              sx={{\n                ...(side === 'right' && {\n                  marginLeft: 'auto',\n                }),\n                '& .MuiIconButton-root': {\n                  opacity: 0,\n                  padding: '6px',\n                  color: 'rgba(0,0,0,0.34)',\n                  '&:hover': {\n                    color: 'rgba(0,0,0,0.87)',\n                    opacity: 1,\n                  },\n                  margin: '0 4px',\n                  '& svg': {\n                    fontSize: 20,\n                  },\n                },\n              }}\n            >\n              <Box\n                sx={{\n                  display: 'flex',\n                  alignItems: 'center',\n                  marginBottom: '4px',\n                  '&:hover .MuiIconButton-root': {\n                    opacity: 1,\n                  },\n                  ...{\n                    left: {\n                      textAlign: 'left' as const,\n                    },\n                    right: {\n                      textAlign: 'right' as const,\n                      flexDirection: 'row-reverse' as const,\n                    },\n                  }[side],\n                }}\n              >\n                {typeof msg === 'string' && (\n                  <Typography\n                    align={'left'}\n                    sx={{\n                      maxWidth: '70%',\n                      padding: spacing(1, 2),\n                      borderRadius: '4px',\n                      display: 'inline-block',\n                      wordBreak: 'break-word',\n                      fontFamily:\n                        '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"',\n                      fontSize: '14px',\n                      ...{\n                        left: {\n                          borderTopRightRadius: radius,\n                          borderBottomRightRadius: radius,\n                          backgroundColor: palette.grey[100],\n                        },\n                        right: {\n                          borderTopLeftRadius: radius,\n                          borderBottomLeftRadius: radius,\n                          backgroundColor: rightBgColor,\n                          color: palette.common.white,\n                        },\n                      }[side],\n                      ...attachClass(i),\n                    }}\n                  >\n                    {msg}\n                  </Typography>\n                )}\n                {typeof msg === 'object' && msg.type === 'image' && (\n                  <Box\n                    component=\"img\"\n                    alt={msg.alt}\n                    src={msg.src}\n                    sx={{ maxWidth: 120, maxHeight: 120 }}\n                  />\n                )}\n                <IconButton>\n                  <TagFaces />\n                </IconButton>\n                <IconButton>\n                  <Reply />\n                </IconButton>\n                <IconButton>\n                  <MoreHoriz />\n                </IconButton>\n              </Box>\n            </Box>\n          );\n        })}\n      </Grid>\n    </Grid>\n  );\n};\n\nexport default ChatMsg;\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/ChatSettings.tsx",
      "target": "src/mui-treasury/layout/app-messenger/components/ChatSettings.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport Edit from '@mui/icons-material/Edit';\nimport FormatPaint from '@mui/icons-material/FormatPaint';\nimport KeyboardArrowDown from '@mui/icons-material/KeyboardArrowDown';\nimport KeyboardArrowLeft from '@mui/icons-material/KeyboardArrowLeft';\nimport Search from '@mui/icons-material/Search';\nimport ThumbUp from '@mui/icons-material/ThumbUp';\nimport Avatar from '@mui/material/Avatar';\nimport Box from '@mui/material/Box';\nimport Divider from '@mui/material/Divider';\nimport Typography from '@mui/material/Typography';\nimport { styled } from '@mui/material/styles';\n\nconst StyledAvatar = styled(Avatar)(() => ({\n  width: 100,\n  height: 100,\n  margin: 'auto',\n}));\n\nconst TypographyName = styled(Typography)(() => ({\n  marginTop: '14px',\n  fontSize: '22px !important',\n  fontWeight: 'bold',\n}));\n\ninterface SettingHeaderProps {\n  children: React.ReactNode;\n  opened?: boolean;\n}\n\nconst SettingHeader = ({ children, opened }: SettingHeaderProps) => {\n  return (\n    <Box\n      sx={{\n        p: '14px',\n        display: 'flex',\n        justifyContent: 'space-between',\n        alignItems: 'center',\n\n        '&:hover': {\n          backgroundColor: 'rgba(0,0,0,0.08)',\n        },\n      }}\n    >\n      <Typography\n        sx={{\n          '&:hover': {\n            backgroundColor: 'rgba(0,0,0,0.08)',\n          },\n        }}\n      >\n        {children}\n      </Typography>\n      {opened ? <KeyboardArrowDown /> : <KeyboardArrowLeft />}\n    </Box>\n  );\n};\n\ninterface SettingProps {\n  label: string;\n  icon: React.ReactElement;\n  blue?: boolean;\n}\n\nconst Setting = ({ label, icon, blue }: SettingProps) => {\n  return (\n    <Box\n      sx={{\n        height: '44px',\n        pl: '14px',\n        pr: '12px',\n        display: 'flex',\n        justifyContent: 'space-between',\n        alignItems: 'center',\n      }}\n    >\n      <Typography variant={'body2'}>{label}</Typography>\n      {React.cloneElement(icon as never, {\n        sx: {\n          padding: '6px',\n          borderRadius: '50%',\n          backgroundColor: 'rgba(0,0,0,0.04)',\n          width: 32,\n          height: 32,\n          ...(blue && {\n            color: 'rgb(0, 153, 255)',\n            background: 'none',\n          }),\n        },\n      })}\n    </Box>\n  );\n};\n\nconst ChatSettings = () => {\n  return (\n    <div>\n      <Box\n        sx={{\n          p: '14px 14px 16px 14px',\n          textAlign: 'center',\n        }}\n      >\n        <StyledAvatar src={'https://i.pravatar.cc/300?img=13'} />\n        <TypographyName variant={'h1'} align={'center'}>\n          Imaad Casey\n        </TypographyName>\n      </Box>\n      <Divider />\n      <SettingHeader opened>Options</SettingHeader>\n      <Box\n        sx={{\n          pb: 2,\n        }}\n      >\n        <Setting label={'Search in Conversation'} icon={<Search />} />\n        <Setting label={'Edit Nicknames'} icon={<Edit />} />\n        <Setting label={'Change Theme'} icon={<FormatPaint />} blue />\n        <Setting label={'Change Emoji'} icon={<ThumbUp />} blue />\n      </Box>\n      <Divider />\n      <SettingHeader>Privacy & Support</SettingHeader>\n      <Divider />\n      <SettingHeader>Shared files</SettingHeader>\n      <Divider />\n      <SettingHeader>Shared Photos</SettingHeader>\n    </div>\n  );\n};\n\nexport default ChatSettings;\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/ChatsHeader.tsx",
      "target": "src/mui-treasury/layout/app-messenger/components/ChatsHeader.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport Edit from '@mui/icons-material/Edit';\nimport SettingsApplications from '@mui/icons-material/SettingsApplications';\nimport Avatar from '@mui/material/Avatar';\nimport Box from '@mui/material/Box';\nimport IconButton from '@mui/material/IconButton';\nimport Typography from '@mui/material/Typography';\n\nconst ChatsHeader = () => {\n  return (\n    <Box\n      sx={{\n        py: '10px',\n        px: 2,\n        display: 'flex',\n        alignItems: 'center',\n      }}\n    >\n      <Avatar alt={'me'} src={'https://i.pravatar.cc/300?img=10'} />\n      <Typography variant={'h4'} sx={{ flex: 'auto', marginLeft: '16px' }}>\n        <b>Chats</b>\n      </Typography>\n      <IconButton\n        sx={{\n          padding: '8px',\n          backgroundColor: 'rgba(0, 0, 0, .04)',\n          '&:not(:last-child)': {\n            marginRight: '16px',\n          },\n        }}\n      >\n        <SettingsApplications />\n      </IconButton>\n      <IconButton\n        sx={{\n          padding: '8px',\n          backgroundColor: 'rgba(0, 0, 0, .04)',\n          '&:not(:last-child)': {\n            marginRight: '16px',\n          },\n        }}\n      >\n        <Edit />\n      </IconButton>\n    </Box>\n  );\n};\n\nexport default ChatsHeader;\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/ConversationHead.tsx",
      "target": "src/mui-treasury/layout/app-messenger/components/ConversationHead.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport Info from '@mui/icons-material/Info';\nimport Phone from '@mui/icons-material/Phone';\nimport Videocam from '@mui/icons-material/Videocam';\nimport Avatar from '@mui/material/Avatar';\nimport Box from '@mui/material/Box';\nimport IconButton from '@mui/material/IconButton';\nimport ListItem from '@mui/material/ListItem';\nimport ListItemAvatar from '@mui/material/ListItemAvatar';\nimport ListItemText from '@mui/material/ListItemText';\n\nconst ConversationHead = () => {\n  return (\n    <Box sx={{ width: '100%' }}>\n      <ListItem\n        sx={{ padding: '8px 8px 8px 16px' }}\n        secondaryAction={\n          <>\n            <IconButton\n              sx={{\n                '& svg': {\n                  color: 'rgb(0, 153, 255)',\n                },\n              }}\n            >\n              <Phone />\n            </IconButton>\n            <IconButton\n              sx={{\n                '& svg': {\n                  color: 'rgb(0, 153, 255)',\n                },\n              }}\n            >\n              <Videocam />\n            </IconButton>\n            <IconButton\n              sx={{\n                '& svg': {\n                  color: 'rgb(0, 153, 255)',\n                },\n              }}\n            >\n              <Info />\n            </IconButton>\n          </>\n        }\n      >\n        <ListItemAvatar>\n          <Avatar src={'https://i.pravatar.cc/300?img=13'} />\n        </ListItemAvatar>\n        <ListItemText\n          primary={'Imaad Casey'}\n          secondary={'active 17m ago'}\n          slotProps={{\n            primary: {\n              sx: {\n                fontWeight: 'bold',\n              },\n            },\n\n            secondary: {\n              sx: {\n                fontSize: 12,\n              },\n            },\n          }}\n        />\n      </ListItem>\n    </Box>\n  );\n};\n\nexport default ConversationHead;\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/MessengerSearch.tsx",
      "target": "src/mui-treasury/layout/app-messenger/components/MessengerSearch.tsx",
      "content": "'use client';\nimport React from 'react';\n\nimport Search from '@mui/icons-material/Search';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport InputBase from '@mui/material/InputBase';\n\nconst MessengerSearch = () => {\n  return (\n    <InputBase\n      startAdornment={\n        <InputAdornment\n          position={'start'}\n          sx={{\n            paddingLeft: '12px',\n            '& svg': {\n              color: 'rgba(0,0,0,0.38)',\n            },\n          }}\n        >\n          <Search />\n        </InputAdornment>\n      }\n      placeholder={'Search Messenger'}\n      sx={{\n        backgroundColor: 'rgba(0, 0, 0, .04)',\n        borderRadius: '40px',\n        width: '100%',\n        '& .MuiInputBase-input': {\n          boxSizing: 'border-box',\n          minHeight: 36,\n        },\n      }}\n    />\n  );\n};\n\nexport default MessengerSearch;\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/components/index.ts",
      "target": "src/mui-treasury/layout/app-messenger/components/index.ts",
      "content": "export { default as ChatsHeader } from './ChatsHeader';\nexport { default as MessengerSearch } from './MessengerSearch';\nexport { default as ChatListItem } from './ChatListItem';\nexport { default as ChatList } from './ChatList';\nexport { default as ConversationHead } from './ConversationHead';\nexport { default as ChatSettings } from './ChatSettings';\nexport { default as ChatBar } from './ChatBar';\nexport { default as ChatDialog } from './ChatDialog';\n",
      "type": "registry:item"
    },
    {
      "path": "layout/app-messenger/index.ts",
      "target": "src/mui-treasury/layout/app-messenger/index.ts",
      "content": "export * from './app-messenger';\nexport * from './ChatBar';\nexport { default as ChatBar } from './ChatBar';\nexport * from './ChatDialog';\nexport { default as ChatDialog } from './ChatDialog';\nexport * from './ChatList';\nexport { default as ChatList } from './ChatList';\nexport * from './ChatListItem';\nexport { default as ChatListItem } from './ChatListItem';\nexport * from './ChatMsg';\nexport { default as ChatMsg } from './ChatMsg';\nexport * from './ChatSettings';\nexport { default as ChatSettings } from './ChatSettings';\nexport * from './ChatsHeader';\nexport { default as ChatsHeader } from './ChatsHeader';\nexport * from './ConversationHead';\nexport { default as ConversationHead } from './ConversationHead';\nexport * from './MessengerSearch';\nexport { default as MessengerSearch } from './MessengerSearch';\nexport * from './index';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "layout",
    "screenshot": "/public/screenshots/app-messenger.png",
    "previewPath": "/app-layout/app-messenger",
    "previewMode": "iframe"
  }
}