import { FormButtons } from '@components/admin/FormButtons.js'; import Area from '@components/common/Area.js'; import { Form } from '@components/common/form/Form.js'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@components/common/ui/Card.js'; import React from 'react'; interface CouponEditFormProps { action: string; gridUrl: string; } export default function CouponEditForm({ action, gridUrl }: CouponEditFormProps) { return (
General Information The general information about the coupon. Discount Type The type of discount applied by the coupon.
Order conditions The conditions related to the order for the coupon to be applied.
Customer conditions The conditions related to the customer for the coupon to be applied.
); } export const layout = { areaId: 'content', sortOrder: 10 }; export const query = ` query Query { action: url(routeId: "updateCoupon", params: [{key: "id", value: getContextValue("couponUuid")}]), gridUrl: url(routeId: "couponGrid") } `;