We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fb2843 commit 59fd0a6Copy full SHA for 59fd0a6
hackathon/spacecraft/src/hooks/useImage.ts
@@ -1,3 +1,13 @@
1
+/**
2
+ * A custom hook that returns the image source for a given starship title.
3
+ *
4
+ * @param {string} title - The title of the starship.
5
+ * @returns {any} The image source corresponding to the starship title.
6
7
+ * @example
8
+ * const imageSource = useImage("Millennium Falcon");
9
+ * // imageSource will be the path to the Millennium Falcon image.
10
+ */
11
export const useImage = (title: string) => {
12
const imageName = `${title.toLowerCase().replace(" ", "")}`;
13
hackathon/spacecraft/src/navigation/AuthNavigator.tsx
@@ -1,4 +1,3 @@
-import React from "react";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { Routes } from "~/navigation/Routes";
0 commit comments