---
import Layout from '../../layouts/Layout.astro';
import MovieDetails from '../../components/MovieDetails.astro';
import { getDataEntryById } from 'astro:content';

const result = await getDataEntryById('movies', Astro.params.id as any);
const data = result.data.data;
---

<Layout title={`${data.title} on Movies List`}>
	<MovieDetails data={data} />
</Layout>
