···11-import React from "react";
22-33-/*
44-Functional component, wrapped in React.forwardRef. Generally following this guide:
55-https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-function-component
66-77-{onClick, href, ...props} -> This is the object of props, being passed to the function.
88-...props passes all other props, outside of those explicitly mentioned. Importantly,
99-this includes props.children.
1010-1111-Specifying each of these in the parent div **is required**, otherwise they don't pass
1212-to the children correctly, and the links don't work.
1313-1414-hover:from-purple-200 hover:to-orange-200 hover:dark:from-purple-700 hover:dark:to-orange-500
1515-*/
1616-1717-const SectionItem = React.forwardRef(({ onClick, href, ...props }, ref) => {
1818- return (
1919- <div
2020- className={`${props.className} rounded-lg
2121- bg-gradient-to-r from-purple-200 to-orange-100 dark:from-purple-500 dark:to-orange-300
2222- border border-stone-800 dark:border-stone-200
2323- shadow-md hover:shadow-lg
2424- `}
2525- ref={ref}
2626- href={href}
2727- onClick={onClick}
2828- >
2929- {props.children}
3030- </div>
3131- );
3232-});
3333-3434-export default SectionItem;