diff --git a/src/components/column/index.tsx b/src/components/column/index.tsx
index 1491427..9bc96fe 100644
--- a/src/components/column/index.tsx
+++ b/src/components/column/index.tsx
@@ -1,11 +1,8 @@
-import { columnIds, metadata } from "@shared/metadata"
import type { ColumnID } from "@shared/types"
-import { Link } from "@tanstack/react-router"
-import clsx from "clsx"
import { useAtom } from "jotai"
import { useEffect } from "react"
-import { useTitle } from "react-use"
import { Dnd } from "./dnd"
+import { NavBar } from "./navbar"
import { currentColumnIDAtom } from "~/atoms"
export function Column({ id }: { id: ColumnID }) {
@@ -13,30 +10,9 @@ export function Column({ id }: { id: ColumnID }) {
useEffect(() => {
setCurrentColumnID(id)
}, [id, setCurrentColumnID])
- useTitle(`NewsNow | ${metadata[id].name}`)
return (
<>
-
-
- {columnIds.map(columnId => (
-
- {metadata[columnId].name}
-
- ))}
-
-
+
{ currentColumnID === id && }
>
)
diff --git a/src/components/column/navbar.tsx b/src/components/column/navbar.tsx
new file mode 100644
index 0000000..f14536b
--- /dev/null
+++ b/src/components/column/navbar.tsx
@@ -0,0 +1,33 @@
+import { columnIds, metadata } from "@shared/metadata"
+import type { ColumnID } from "@shared/types"
+import { Link } from "@tanstack/react-router"
+import clsx from "clsx"
+import { useTitle } from "react-use"
+
+export function NavBar({ id }: { id: ColumnID }) {
+ useTitle(`NewsNow | ${metadata[id].name}`)
+ return (
+
+
+ {columnIds.map(columnId => (
+
+ {metadata[columnId].name}
+
+ ))}
+
+
+ )
+}