Skip to content

Commit

Permalink
[#23] 적극적 투자기법 목록 atom
Browse files Browse the repository at this point in the history
  • Loading branch information
03hoho03 committed Apr 7, 2024
1 parent b41bb63 commit 6d22cd1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions app/_store/atom.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { atom } from 'recoil'

export interface ActiveInvestmentItemType {
id: string
name: string
score: number
}

// type ActiveType = Omit<ActiveInvestmentItemType, 'id'>
// 시온 그는 신이야...
// 고오급 타입 스크립트,,,

const investmentItemAtom = atom<ActiveInvestmentItemType[]>({
key: 'investmentItemAtom',
default: [
{
id: new Date().toISOString(),
name: '',
score: 0,
},
],
})

export default investmentItemAtom

0 comments on commit 6d22cd1

Please sign in to comment.