import React from "react"; import { Dimensions } from "react-native"; import { ScrollView, Text, View } from "tamagui"; import type { ItemData } from "~/components/item/item"; import Item from "~/components/item/item"; const padding = 20; const screenWidth = Dimensions.get("window").width; const itemWidth = screenWidth / 2.3 - padding; export const ItemListSection = ({ title, items, }: { title: string; items: ItemData[]; }) => { return ( {title} {items.map((item, index) => ( ))} ); };