# Submit Product

* **Component**: \<SubmitProduct/>
* **Path**: /components/shared/submit-product.tsx
* **Import**:

```typescript
import { SubmitProduct } from "@/components/shared/submit-product";
```

<figure><img src="/files/bC2qsAfJKJeGy1YzgmMM" alt=""><figcaption><p>Submit Product Modal</p></figcaption></figure>

Users can suggest/submit products with this simple modal. No dedicated page so it does not disturb their navigation too much.

Most fields are optional to not discourage people.

{% hint style="info" %}
Do not forget to fill `ADMIN_EMAIL` in `.env` file as anonymous suggestions will be connected to your account.
{% endhint %}

If you need your users to be logged in to submit, uncomment this code in `components/shared/submit-book.tsx` :

{% code title="submit-book.tsx" %}

```typescript
// if (session.status === "unauthenticated") {
  //   return (
  //     <>
  //       <SignInModal />
  //       <Button variant="ghost" onClick={() => setShowSignInModal(true)}>
  //         <PlusIcon className="mr-2 h-4 w-4" />
  //         Suggest a book
  //       </Button>
  //     </>
  //   );
  // }
  // if (session.status === "authenticated") {
```

{% endcode %}

&#x20;As a result, [SignIn](/general-components/signin-modal.md) modal will be triggered instead.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.directoryfa.st/directory-components/submit-product.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
