Spaces:
Sleeping
Sleeping
File size: 630 Bytes
dbcdc7c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import theming from '/src/styles/theming.module.css';
import clsx from 'clsx';
const InfoCard = ({ app, theme }) => {
return (
<div
className={clsx(
'flex h-13 w-full p-2.5 py-7 items-center rounded-xl',
theming[`theme-${theme || 'default'}`],
)}
>
<img src={app?.icon} className="w-12 h-12 rounded-md object-cover" />
<div className="ml-4 flex flex-col gap-1">
<p className="font-bold">{app?.appName || 'Unknown App'}</p>
<span className="text-ellipsis">{app?.desc || 'No description available.'}</span>
</div>
</div>
);
};
export default InfoCard;
|