website refactor
This commit is contained in:
28
apps/website/components/profile/LiveryGallery.tsx
Normal file
28
apps/website/components/profile/LiveryGallery.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import { Grid } from '@/ui/Grid';
|
||||
import { LiveryCard } from '@/ui/LiveryCard';
|
||||
import { ProfileSection } from './ProfileSection';
|
||||
import { ProfileLiveryViewData } from '@/lib/view-data/ProfileLiveriesViewData';
|
||||
|
||||
interface LiveryGalleryProps {
|
||||
liveries: ProfileLiveryViewData[];
|
||||
action?: React.ReactNode;
|
||||
}
|
||||
|
||||
export function LiveryGallery({ liveries, action }: LiveryGalleryProps) {
|
||||
return (
|
||||
<ProfileSection
|
||||
title="My Liveries"
|
||||
description="Manage your custom car liveries and designs."
|
||||
action={action}
|
||||
>
|
||||
<Grid cols={3} gap={6}>
|
||||
{liveries.map((livery) => (
|
||||
<LiveryCard key={livery.id} livery={livery} />
|
||||
))}
|
||||
</Grid>
|
||||
</ProfileSection>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user