init project
Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
how2ice
2025-12-12 14:26:25 +09:00
commit 005cf56baf
43188 changed files with 1079531 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
import * as React from 'react';
import Sheet from '@mui/joy/Sheet';
import MessagesPane from './MessagesPane';
import ChatsPane from './ChatsPane';
import { ChatProps } from '../types';
import { chats } from '../data';
export default function MyProfile() {
const [selectedChat, setSelectedChat] = React.useState<ChatProps>(chats[0]);
return (
<Sheet
sx={{
flex: 1,
width: '100%',
mx: 'auto',
pt: { xs: 'var(--Header-height)', md: 0 },
display: 'grid',
gridTemplateColumns: {
xs: '1fr',
sm: 'minmax(min-content, min(30%, 400px)) 1fr',
},
}}
>
<Sheet
sx={{
position: { xs: 'fixed', sm: 'sticky' },
transform: {
xs: 'translateX(calc(100% * (var(--MessagesPane-slideIn, 0) - 1)))',
sm: 'none',
},
transition: 'transform 0.4s, width 0.4s',
zIndex: 100,
width: '100%',
top: 52,
}}
>
<ChatsPane
chats={chats}
selectedChatId={selectedChat.id}
setSelectedChat={setSelectedChat}
/>
</Sheet>
<MessagesPane chat={selectedChat} />
</Sheet>
);
}