import Area from '@components/common/Area.js'; import { Card, CardContent, CardHeader, CardTitle } from '@components/common/ui/Card.js'; import { _ } from '@evershop/evershop/lib/locale/translate/_'; import React from 'react'; interface CustomerNotesProps { order: { shippingNote: string; }; } export default function CustomerNotes({ order: { shippingNote } }: CustomerNotesProps) { return ( {_('Customer notes')} (
{shippingNote || ( {_('No notes from customer')} )}
) }, props: {}, sortOrder: 10, id: 'title' } ]} noOuter />
); } export const layout = { areaId: 'rightSide', sortOrder: 10 }; export const query = ` query Query { order(uuid: getContextValue("orderId")) { shippingNote } } `;