mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-05 23:16:57 -06:00
Cull unused AppWrapper details
This commit is contained in:
@@ -1,21 +1,10 @@
|
|||||||
import { cn } from "@/utils/helpers";
|
import { cn } from "@/utils/helpers";
|
||||||
import { Disclosure } from "@headlessui/react";
|
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
import Link from "next/link";
|
|
||||||
import type { FunctionComponent, ReactNode } from "react";
|
import type { FunctionComponent, ReactNode } from "react";
|
||||||
import { HiBars3, HiXMark } from "react-icons/hi2";
|
|
||||||
|
|
||||||
const navigation: { id: string; name: string; href: string }[] = [
|
|
||||||
{ id: "home", name: "Home", href: "/" },
|
|
||||||
{ id: "projects", name: "Projects", href: "/projects" },
|
|
||||||
{ id: "contact", name: "Contact", href: "/contact" },
|
|
||||||
];
|
|
||||||
|
|
||||||
type WrapperProps = {
|
type WrapperProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
hideNavigation?: boolean;
|
children?: ReactNode;
|
||||||
current?: string;
|
|
||||||
children?: ReactNode | ReactNode[] | null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const DotsDynamic = dynamic(
|
const DotsDynamic = dynamic(
|
||||||
@@ -24,9 +13,7 @@ const DotsDynamic = dynamic(
|
|||||||
)
|
)
|
||||||
|
|
||||||
const AppWrapper: FunctionComponent<WrapperProps> = ({
|
const AppWrapper: FunctionComponent<WrapperProps> = ({
|
||||||
current,
|
|
||||||
children,
|
children,
|
||||||
hideNavigation,
|
|
||||||
className,
|
className,
|
||||||
}: WrapperProps) => {
|
}: WrapperProps) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user