website refactor
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import { MediaTemplate } from '@/templates/MediaTemplate';
|
||||
import { MediaAsset } from '@/components/media/MediaGallery';
|
||||
|
||||
export interface MediaPageClientProps {
|
||||
initialAssets: MediaAsset[];
|
||||
categories: { label: string; value: string }[];
|
||||
}
|
||||
|
||||
export function MediaPageClient({
|
||||
initialAssets,
|
||||
categories,
|
||||
}: MediaPageClientProps) {
|
||||
return (
|
||||
<MediaTemplate
|
||||
assets={initialAssets}
|
||||
categories={categories}
|
||||
title="Media Library"
|
||||
description="Manage and view all racing assets, telemetry captures, and brand identities."
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { MediaPageClient } from '../MediaPageClient';
|
||||
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
|
||||
|
||||
export default async function AvatarsPage() {
|
||||
const assets = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { MediaPageClient } from '../MediaPageClient';
|
||||
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
|
||||
|
||||
export default async function LeaguesMediaPage() {
|
||||
const assets = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { MediaPageClient } from './MediaPageClient';
|
||||
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
|
||||
|
||||
export default async function MediaPage() {
|
||||
// In a real app, we would fetch this data from an API or database
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { MediaPageClient } from '../MediaPageClient';
|
||||
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
|
||||
|
||||
export default async function SponsorsMediaPage() {
|
||||
const assets = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { MediaPageClient } from '../MediaPageClient';
|
||||
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
|
||||
|
||||
export default async function TeamsMediaPage() {
|
||||
const assets = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { MediaPageClient } from '../MediaPageClient';
|
||||
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
|
||||
|
||||
export default async function TracksMediaPage() {
|
||||
const assets = [
|
||||
|
||||
Reference in New Issue
Block a user