21 lines
593 B
TypeScript
21 lines
593 B
TypeScript
|
|
import AdminLocationForm from "@/components/AdminLocationForm";
|
||
|
|
|
||
|
|
export default async function EditLocationPage({
|
||
|
|
params,
|
||
|
|
}: {
|
||
|
|
params: Promise<{ id: string }>;
|
||
|
|
}) {
|
||
|
|
const { id } = await params;
|
||
|
|
|
||
|
|
return (
|
||
|
|
<div className="card shadow-sm border border-secondary mt-4 bg-dark text-white">
|
||
|
|
<div className="card-header bg-dark border-secondary py-3">
|
||
|
|
<h5 className="mb-0">Edit Location</h5>
|
||
|
|
</div>
|
||
|
|
<div className="card-body">
|
||
|
|
<AdminLocationForm locationId={id} />
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|