import React from 'react';
import { LinkIcon, ChevronRightIcon } from '@heroicons/react/24/outline';
import { rdsFontSizes } from '../../../utils/tailwindClasses';
import { Link } from '../../Link/Link';
// Set types for as props
type BaseItemTypeProps = 'li' | 'div';
type TitleTypeProps = 'h2' | 'h3';
export interface LinkItemProps {
children?: React.ReactNode;
fontSize?: 'base' | 'lg' | 'xl';
title?: string;
link?: string;
}
export interface ItemBaseProps {
as?: keyof JSX.IntrinsicElements;
}
export interface BaseItemProps {
as?: BaseItemTypeProps;
}
export interface TitleProps {
as?: TitleTypeProps;
}
const LinkItemBase = ({
as: Component = 'div',
children,
link,
}: BaseItemProps & LinkItemProps) => {
return (