Haystack/frontend/src/utils/getCardSize.ts
Dmytro Kondakov caf168c7a1 feat(frontend): add new search card components and update styling
- Introduced new search card components for Contact, Event, Location, Note, Receipt, and Website.
- Updated the App component to utilize these new components for displaying search results.
- Changed the default font from Manrope to Switzer and updated related styles.
- Added a new dependency `solid-motionone` to package.json.
- Improved search functionality with a new sample data structure and enhanced search logic.
2025-03-23 21:56:09 +01:00

21 lines
464 B
TypeScript

export type CardSize = "1/1" | "2/1";
export const getCardSize = (type: string): CardSize => {
switch (type) {
case "Event":
return "2/1";
case "Contact":
return "1/1";
case "Location":
return "1/1";
case "Note":
return "2/1";
case "Website":
return "1/1";
case "Receipt":
return "2/1";
default:
return "1/1";
}
};