A bajillion type errors

This commit is contained in:
Gnarwhal 2024-09-18 15:39:27 +00:00
parent dfcb95bd0d
commit 9fecf5bbfa
Signed by: Gnarwhal
GPG key ID: B9B7561C0C90884D
10 changed files with 36 additions and 45 deletions

View file

@ -1,4 +1,4 @@
import type { Metadata, ResolvingMetadata } from 'next';
import type { Metadata } from 'next';
import Image from 'next/image';
import DownloadTTY from './download_tty';
@ -10,7 +10,7 @@ import download_image_light from './download_light.svg';
type SearchParams = { [key: string]: string | string[] | undefined };
type Props = {
params: { file: string },
params: { file: string[] },
searchParams: SearchParams,
};
@ -24,7 +24,6 @@ function get_root(search_params: SearchParams) {
export async function generateMetadata(
{ params, searchParams }: Props,
parent: ResolvingMetadata,
): Promise<Metadata> {
return {
title: `${get_path(params.file)} | ${get_root(searchParams)}`,
@ -52,7 +51,7 @@ export default async function Page({
<p className={style.title}>{path}</p>
</div>
<button className={style.download_button}>
<a className={style.download_link} href={full} download>
<a href={full} download>
<Image
className={style.download_button_image_dark}
src={download_image_dark}