// import { Card } from '~/components/card'; import { LoaderFunction, redirect } from 'remix'; import { getSection, getConfig } from '~/utils'; export const loader: LoaderFunction = async ({ request }): Promise => { const config = await getConfig(request); const sec = getSection(config, 0); if (!sec) throw new Response('Article was not found', { status: 404 }); return redirect(`/${sec.folder}`); }; // export default function Index() { // return ( //
//
// // An explorable explanation (often shortened to explorable) is a form of // informative media where an interactive computer simulation of a given concept // is presented, along with some form of guidance (usually prose) that suggests // ways that the audience can learn from the simulation. // //
//
// ); // }