import { Checkbox } from '@mantine/core'; interface LineBookCardProps { title?: string;…
- User
import { Checkbox } from '@mantine/core';
interface LineBookCardProps { title?: string; bgColor?: string; textColor?: string; lineColor?: string; showSteps?: boolean; items?: string[]; }
const LineBookCard: React.FC = ({ title = 'Title', bgColor = 'bg-white', textColor = 'text-black', lineColor = 'border-gray-400', showSteps = false, // Default to false to show checkboxes items = [], }) => { return ( <div className={
flex flex-col items-start p-4 ${bgColor} w-96 rounded-lg shadow-md} > <h2 className={text-2xl font-semibold ${textColor} border-b ${lineColor} border-opacity-20 py-2 mb-4 w-full} > {title}<ul className={`text-left ${textColor} w-full`}> {items.map((item, index) => ( <li key={index} className={`flex items-center py-4 text-base ${ index < items.length - 1 ? `border-b ${lineColor} border-opacity-10` : '' }`} > {showSteps ? ( <span className={`font-semibold mr-2`}>Step {index + 1}:</span> ) : ( <Checkbox color='indigo' size='md' /> )} <span className='ml-2'>{item}</span> </li> ))} </ul> </div>); };
export default LineBookCard;
modify this so we have a third option where neither checkbox nor steps are being show
- Assistant
- User
the items are not being shown in none
- Assistant