props로 받아온 객체의 타입 문제 상황 !store의 상태 받아올 때 객체형태의 type을 어떤 형태로 받아야할까? object로 하니까 안됨 primitiv 타입이 아니라 내가 정의한 객체 타입 123456789type tabProps = { key: string; title: string; searchValue?: string;}function setTabs({key, title, searchValue}: tabProps) { ...}