d8f442c1aa
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
424 B
TypeScript
16 lines
424 B
TypeScript
import { getDailyPlan } from "../plan";
|
||
import { DailyPlanView } from "./daily-plan-view";
|
||
|
||
/** Dashboard günlük plan kartı (sunucu): veriyi yükler, görünümü istemciye verir. */
|
||
export async function DailyPlanCard({
|
||
userId,
|
||
householdId,
|
||
}: {
|
||
userId: string;
|
||
householdId: string;
|
||
}) {
|
||
const data = await getDailyPlan(userId, householdId);
|
||
if (!data) return null;
|
||
return <DailyPlanView data={data} />;
|
||
}
|