2024-10-27 21:11:45 +00:00
|
|
|
/* Copyright (C) 2024 Manuel Bustillo*/
|
|
|
|
|
2024-11-02 12:52:12 +01:00
|
|
|
'use client';
|
|
|
|
|
2024-11-02 11:24:48 +01:00
|
|
|
import Arrangement from '@/app/ui/arrangements/arrangement';
|
2024-11-02 12:52:12 +01:00
|
|
|
import React, { useState } from 'react';
|
|
|
|
import ArrangementsTable from '@/app/ui/arrangements/arrangements-table';
|
2024-11-01 18:25:00 +01:00
|
|
|
|
|
|
|
export default function Page() {
|
2024-11-02 12:52:12 +01:00
|
|
|
const [currentArrangement, setCurrentArrangement] = useState<string | null>(null);
|
2024-11-02 11:24:48 +01:00
|
|
|
|
2024-11-02 12:52:12 +01:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<ArrangementsTable onArrangementSelected={setCurrentArrangement} />
|
|
|
|
{currentArrangement && <Arrangement key={currentArrangement} id={currentArrangement} />}
|
|
|
|
</>
|
2024-11-02 11:24:48 +01:00
|
|
|
)
|
2024-08-11 12:34:16 +02:00
|
|
|
}
|