File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/thirdweb/src/react/core/utils Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,16 @@ export const socialIcons = {
5050 github : githubIconUri ,
5151} ;
5252
53- // TODO: this should return actual <svg> elements so they can be themed
53+ /**
54+ * Gets the icon URI for a given social authentication provider
55+ * @param provider - The authentication provider to get the icon for
56+ * @returns A data URI containing the SVG icon for the provider, or a generic wallet icon if the provider is not recognized
57+ * @example
58+ * ```tsx
59+ * const googleIcon = getSocialIcon("google")
60+ * const appleIcon = getSocialIcon("apple")
61+ * ```
62+ */
5463export function getSocialIcon ( provider : AuthOption | ( { } & string ) ) {
5564 switch ( provider ) {
5665 case "google" :
You can’t perform that action at this time.
0 commit comments