import { cssBundleHref } from "@remix-run/css-bundle"; import type { LinksFunction } from "@remix-run/node"; import { V2_MetaFunction } from "@remix-run/node"; import { isRouteErrorResponse, Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration, useRouteError } from "@remix-run/react"; import type { ReactNode } from "react"; import stylesheet from "~/tailwind.css"; export const links: LinksFunction = () => [ { rel: "stylesheet", href: stylesheet }, ...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []) ]; export const meta: V2_MetaFunction = () => [{ title: "Awesome Radio" }]; export type DocumentProps = { children: ReactNode; title?: string; } export function Document({ title, children }: DocumentProps) { return (
{title ?{error.stack}