import { LinkIcon } from '@primer/octicons-react' import cx from 'classnames' import { useMainContext } from 'components/context/MainContext' type Props = { title?: React.ReactNode sectionLink?: string children?: React.ReactNode className?: string description?: string } export const LandingSection = ({ title, children, className, sectionLink, description }: Props) => { const { page } = useMainContext() return (
{title && (

{sectionLink ? ( {title} ) : ( title )}

)} {description && (
)} {children}
) }