import { Link } from '@tanstack/react-router' import { Card, CardContent } from '~/components/ui/card' import { Skeleton } from '~/components/ui/skeleton' import { assetUrl } from '~/lib/directus' import type { VendorListItem } from '~/lib/types' import { truncateDescription } from './types' type Props = { vendors: VendorListItem[] isLoading: boolean perPage: number } export function VendorGrid({ vendors, isLoading, perPage }: Props) { return (
{truncateDescription(v.description)}