diff --git a/packages/frontend/src/components/layouts/Sidebar.tsx b/packages/frontend/src/components/layouts/Sidebar.tsx index a2e85383..f57af1e6 100644 --- a/packages/frontend/src/components/layouts/Sidebar.tsx +++ b/packages/frontend/src/components/layouts/Sidebar.tsx @@ -2,7 +2,9 @@ import { useState } from 'react'; import logoCharacter from '/logoCharacter.png'; import logoTitle from '/logoTitle.png'; import { MenuList } from './MenuList'; -import { bottomMenuItems, topMenuItems } from '@/constants/menuItems'; +import { Search } from './search'; +import { BOTTOM_MENU_ITEMS, TOP_MENU_ITEMS } from '@/constants/menuItems'; +import { type MenuSection } from '@/types/menu'; import { cn } from '@/utils/cn'; export const Sidebar = () => { @@ -16,6 +18,7 @@ export const Sidebar = () => { }; return ( +
+
+ {showSearch && } +
+ ); }; diff --git a/packages/frontend/src/components/layouts/search/Search.tsx b/packages/frontend/src/components/layouts/search/Search.tsx new file mode 100644 index 00000000..33771b09 --- /dev/null +++ b/packages/frontend/src/components/layouts/search/Search.tsx @@ -0,0 +1,28 @@ +import { Button } from '@/components/ui/button'; +import { Input } from '@/components/ui/input'; +import { cn } from '@/utils/cn'; + +interface SearchProps { + className?: string; +} + +export const Search = ({ className }: SearchProps) => { + const searchResult = ['']; + + return ( +
+

검색

+

+ 주식을 검색하세요. +

+
+ + +
+ {searchResult.map((word) => ( + // TODO: 추후 Link로 수정 +

{word}

+ ))} +
+ ); +}; diff --git a/packages/frontend/src/components/layouts/search/index.ts b/packages/frontend/src/components/layouts/search/index.ts new file mode 100644 index 00000000..addd5330 --- /dev/null +++ b/packages/frontend/src/components/layouts/search/index.ts @@ -0,0 +1 @@ +export * from './Search';