{error}
} +{error}
} - {/* Search */} -- * Uses the default duration if not provided. - *
- */ - duration?: number | undefined; + /** + * The optional duration of the count up. + *+ * Uses the default duration if not provided. + *
+ */ + duration?: number | undefined; }; /** @@ -34,16 +35,19 @@ type CounterProps = { * @param duration the optional duration of the count up * @returns the counter jsx */ -const Counter = ({ name, amount, duration }: CounterProps): JSX.Element => ( -{stars}
- );
+ const stars: number = await getStarCount(); // Get the repo star count
+ return (
+ {stars}
+ );
};
/**
@@ -47,12 +49,12 @@ const GitHubStarCount = async (): Promise{uniqueId}
+ {/* Name, Unique ID, and Badges */}
+
+ {uniqueId}
+
- {/* Legacy Badge */}
- {legacy && Legacy
} -Legacy
+ )} +