import type { UserImage } from "../../network"; import { SearchCardContact } from "./SearchCardContact"; import { SearchCardEvent } from "./SearchCardEvent"; import { SearchCardLocation } from "./SearchCardLocation"; import { SearchCardNote } from "./SearchCardNote"; export const SearchCard = (props: { item: UserImage }) => { const { item } = props; console.log(item); switch (item.type) { case "location": return ; case "event": return ; case "note": return ; case "contact": return ; default: return null; } };