import React from 'react'; import { License } from '../types'; import LicenseItem from './LicenseItem'; interface LicenseListProps { licenses: License[]; onEdit?: (license: License) => void; onDelete?: (id: string) => void; isReadOnly?: boolean; } const LicenseList: React.FC = ({ licenses, onEdit, onDelete, isReadOnly }) => { if (!licenses || licenses.length === 0) { return (

No licenses found.

{!isReadOnly &&

Click "Add New License" to get started.

}
); } return (
{licenses.map(license => ( ))}
); }; export default LicenseList;