Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 3x 11x | import { Lightbulb } from "lucide-react";
import React from "react";
/** Above a form a recommendation filled in: what it set, and that nothing
* is saved until the person saves. */
const PrefillNote: React.FC<{ changes: string[] }> = ({ changes }) =>
changes.length ? (
<p
role="note"
className="flex items-start gap-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/60 px-3 py-2.5 text-xs text-gray-600 dark:text-gray-300"
>
<Lightbulb className="size-3.5 shrink-0 mt-0.5 text-gray-400" aria-hidden="true" />
<span>
Filled in from a recommendation: {changes.join(", ")}. Nothing is saved
until you save.
</span>
</p>
) : null;
export default PrefillNote;
|