Files
sanasto-app/pages/lists/[listId].js
2020-12-30 23:01:42 -06:00

19 lines
385 B
JavaScript

import AppShell from '../../components/AppShell';
import ListDetailPage from '../../components/pages/ListDetail';
export default function ListDetail({ listId }) {
return <AppShell page={ListDetailPage} pageProps={{ listId }} />;
}
export const getServerSideProps = context => {
const {
params: { listId },
} = context;
return {
props: {
listId,
},
};
};