Files
pwa/src/components/program/blocks/ExerciseBlock.tsx
T
ar.badieiandCursor 370ac15471 Ship Novya PWA with backend for deployable production use.
Fix production TypeScript builds and add DEPLOY.md so the app can be hosted from this repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 21:01:52 +03:30

17 lines
626 B
TypeScript

import { Lightbulb } from 'lucide-react';
import type { ExerciseBlockData } from '@/types/contentBlocks';
export function ExerciseBlock({ block }: { block: ExerciseBlockData }) {
return (
<div className="rounded-lg border border-amber-500/20 bg-amber-500/5 p-3">
<div className="mb-1 flex items-center gap-2">
<Lightbulb className="h-4 w-4 text-amber-600" />
<p className="text-sm font-medium text-amber-900 dark:text-amber-200">
{block.title ?? 'تمرین'}
</p>
</div>
<p className="text-sm text-amber-800 dark:text-amber-300">{block.prompt}</p>
</div>
);
}