3
3
import * as React from "react" ;
4
4
import { useRouter } from "next/navigation" ;
5
5
import { DialogProps } from "@radix-ui/react-alert-dialog" ;
6
- import { File , Github , Laptop , Mail , Moon , Sun , Twitter } from "lucide-react" ;
6
+ import { File , Laptop , Mail , Moon , Sun } from "lucide-react" ;
7
7
import { useTheme } from "next-themes" ;
8
+ import { siGithub , siX } from "simple-icons" ;
8
9
9
10
import siteMetadata , { defaultAuthor } from "@/lib/metadata" ;
10
11
import { navigationLinks } from "@/lib/navigation-links" ;
@@ -101,12 +102,20 @@ export function CommandDialogComponent({ ...props }: DialogProps) {
101
102
< CommandItem
102
103
onSelect = { ( ) => {
103
104
runCommand ( ( ) =>
104
- navigate ( defaultAuthor . socialProfiles . find ( ( platform ) => platform . name === "twitter " ) ?. link as string )
105
+ navigate ( defaultAuthor . socialProfiles . find ( ( platform ) => platform . name === "x " ) ?. link as string )
105
106
) ;
106
107
} }
107
108
>
108
- < Twitter className = "mr-2 h-4 w-4" />
109
- < span > Twitter</ span >
109
+ < svg
110
+ role = "img"
111
+ viewBox = "0 0 24 24"
112
+ className = "mr-2 h-4 w-4"
113
+ fill = "currentColor"
114
+ xmlns = "http://www.w3.org/2000/svg"
115
+ >
116
+ < path d = { siX . path } > </ path >
117
+ </ svg >
118
+ < span > X (formerly Twitter)</ span >
110
119
</ CommandItem >
111
120
< CommandItem
112
121
onSelect = { ( ) => {
@@ -115,7 +124,15 @@ export function CommandDialogComponent({ ...props }: DialogProps) {
115
124
) ;
116
125
} }
117
126
>
118
- < Github className = "mr-2 h-4 w-4" />
127
+ < svg
128
+ role = "img"
129
+ viewBox = "0 0 24 24"
130
+ className = "mr-2 h-4 w-4"
131
+ fill = "currentColor"
132
+ xmlns = "http://www.w3.org/2000/svg"
133
+ >
134
+ < path d = { siGithub . path } > </ path >
135
+ </ svg >
119
136
< span > Github</ span >
120
137
</ CommandItem >
121
138
</ CommandGroup >
0 commit comments