drfeely.com/website/app/(pages)/articles/(content)/layout.tsx
2023-08-26 12:06:04 -05:00

26 lines
720 B
TypeScript

import { ArrowLongLeftIcon } from "@heroicons/react/24/solid";
import Link from "next/link";
import { ReactNode } from "react";
interface Props {
children: ReactNode;
}
const ArticlesLayout = ({ children }: Props) => {
return (
<div className="md:w-1/2 mx-auto p-10 mt-16">
<Link href="/articles" className="font-bold block mb-5">
<ArrowLongLeftIcon className="w-[24px] inline "></ArrowLongLeftIcon>{" "}
Back to Articles
</Link>
{children}
<Link href="/articles" className="font-bold block mt-5">
<ArrowLongLeftIcon className="w-[24px] inline "></ArrowLongLeftIcon>{" "}
Back to Articles
</Link>
</div>
);
};
export default ArticlesLayout;