import { Button } from "@/src/components/ui/button"; import { FormDescription } from "@/src/components/ui/form"; import type { UseFormReturn } from "react-hook-form"; import type { FormUpsertModel } from "../../validation"; type TierPrefillButtonsProps = { tierIndex: number; form: UseFormReturn; }; export type { TierPrefillButtonsProps }; export function TierPrefillButtons({ tierIndex, form, }: TierPrefillButtonsProps) { const prices = form.watch(`pricingTiers.${tierIndex}.prices`) || {}; return (
Prefill usage types from template:
); }