diff --git a/components/ChevronDownIcon.tsx b/components/ChevronDownIcon.tsx
new file mode 100644
index 0000000..e077518
--- /dev/null
+++ b/components/ChevronDownIcon.tsx
@@ -0,0 +1,21 @@
+import React from 'react'
+export const ChevronDownIcon = ({ strokeWidth = 1.5, ...otherProps }) => (
+
+)
diff --git a/components/newBookmarkForm.tsx b/components/newBookmarkForm.tsx
index 798aa80..8706469 100644
--- a/components/newBookmarkForm.tsx
+++ b/components/newBookmarkForm.tsx
@@ -8,9 +8,16 @@ import {
ModalFooter,
useDisclosure,
} from '@nextui-org/modal'
+import {
+ Dropdown,
+ DropdownTrigger,
+ DropdownMenu,
+ DropdownItem,
+} from '@nextui-org/dropdown'
import { Button } from '@nextui-org/button'
import { Input } from '@nextui-org/input'
import { Icon } from '@iconify/react'
+import { ChevronDownIcon } from './ChevronDownIcon'
import { useRouter } from 'next/navigation'
import { useState } from 'react'
@@ -24,7 +31,7 @@ export default function NewBookmarkForm() {
link,
description,
url,
- category_id: 2,
+ category_id: selectedKey === 'Other' ? 2 : 1,
}
await fetch('/api/bookmark', {
method: 'POST',
@@ -39,6 +46,8 @@ export default function NewBookmarkForm() {
const [description, setDescription] = useState('')
const [url, setUrl] = useState('')
+ const [selectedKey, setSelectedKey] = useState('Other')
+
return (
<>
+
+
+
+ }
+ variant='flat'>
+
+ {selectedKey}
+
+
+
+
+ {
+ setSelectedKey('Coding')
+ }}
+ className='capitalize'>
+ Coding
+
+ {
+ setSelectedKey('Other')
+ }}
+ className='capitalize'>
+ Other
+
+
+