'use client'; import { useLocalization } from '@akinon/next/hooks'; export interface Props { title: string; order: { number: string; created_date: string; }; children?: React.ReactNode; } export const OrderDetailHeader = ({ title, order, children }: Props) => { const { t } = useLocalization(); return (
{title}
{t('account.my_orders.detail.order_number')}:{' '} {order?.number}
{children}
); };