File tree 2 files changed +64
-0
lines changed
src/frontend/src/components/guild/VoiceChannelController
2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { BsFillTelephoneXFill } from 'react-icons/bs' ;
2
+
3
+ import { useChannelInfoStore } from '@/stores/channelInfo' ;
4
+ import { useGuildInfoStore } from '@/stores/guildInfo' ;
5
+
6
+ import * as S from './styles' ;
7
+
8
+ const VoiceChannelController = ( ) => {
9
+ const { selectedChannel } = useChannelInfoStore ( ) ;
10
+ const { guildName } = useGuildInfoStore ( ) ;
11
+
12
+ return (
13
+ < S . VoiceChannelController >
14
+ < S . ConnectStatusWrapper >
15
+ < S . InfoText >
16
+ < S . ConnectStatusText > 음성 연결됨</ S . ConnectStatusText >
17
+ < S . ChannelInfoText >
18
+ { selectedChannel ?. name } / { guildName }
19
+ </ S . ChannelInfoText >
20
+ </ S . InfoText >
21
+ < BsFillTelephoneXFill size = { 20 } />
22
+ </ S . ConnectStatusWrapper >
23
+ </ S . VoiceChannelController >
24
+ ) ;
25
+ } ;
26
+
27
+ export default VoiceChannelController ;
Original file line number Diff line number Diff line change
1
+ import styled from 'styled-components' ;
2
+
3
+ import { ChipText , SmallText } from '@/styles/Typography' ;
4
+
5
+ export const VoiceChannelController = styled . div `
6
+ display: flex;
7
+ flex-direction: column;
8
+
9
+ padding: 1rem;
10
+ border-bottom: 1px solid ${ ( { theme } ) => theme . colors . dark [ 450 ] } ;
11
+
12
+ background-color: ${ ( { theme } ) => theme . colors . dark [ 750 ] } ;
13
+ ` ;
14
+
15
+ export const InfoText = styled . div `
16
+ display: flex;
17
+ flex-direction: column;
18
+ ` ;
19
+
20
+ export const ConnectStatusText = styled ( ChipText ) `
21
+ font-size: 1.5rem;
22
+ color: ${ ( { theme } ) => theme . colors . lightGreen } ;
23
+ ` ;
24
+
25
+ export const ChannelInfoText = styled ( SmallText ) `
26
+ color: ${ ( { theme } ) => theme . colors . dark [ 350 ] } ;
27
+ ` ;
28
+
29
+ export const ConnectStatusWrapper = styled . div `
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: space-between;
33
+
34
+ svg {
35
+ color: ${ ( { theme } ) => theme . colors . white } ;
36
+ }
37
+ ` ;
You can’t perform that action at this time.
0 commit comments