import React from 'react'; import { Card, CardContent, CardHeader, CardTitle } from './ui/card'; import { Button } from './ui/button'; const SuggestionPanel = ({ suggestion, onApplySuggestion, t }: any) => { if (!suggestion) return null; return ( {t.whatIf} {suggestion.dose ? (

{t.suggestion}: {suggestion.dose}{t.mg} ({t.instead} {suggestion.originalDose}{t.mg}) {t.at} {suggestion.time}.

) : (

{suggestion.text}

)}
); }; export default SuggestionPanel;