✨ Add booking plugin components
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
15a37214d7
commit
aa41ff24a5
1 changed files with 29 additions and 0 deletions
29
@packages/@plugins/booking/src/components.tsx
Normal file
29
@packages/@plugins/booking/src/components.tsx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/**
|
||||
* Booking plugin components (stubs)
|
||||
* Full implementation to be migrated from egirl-platform
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import type { Proposal, ClientBooking } from './types';
|
||||
|
||||
export interface ClientProposalCardProps {
|
||||
proposal: Proposal;
|
||||
onWithdraw?: (id: string) => void;
|
||||
onAcceptCounter?: (id: string) => void;
|
||||
onDeclineCounter?: (id: string) => void;
|
||||
}
|
||||
|
||||
export const ClientProposalCard: React.FC<ClientProposalCardProps> = ({ proposal }) => {
|
||||
return React.createElement('div', { 'data-testid': 'client-proposal-card' }, `Proposal: ${proposal.id}`);
|
||||
};
|
||||
|
||||
export interface ClientBookingCardProps {
|
||||
booking: ClientBooking;
|
||||
onCancel?: (id: string) => void;
|
||||
onReschedule?: (id: string) => void;
|
||||
onViewDetails?: (id: string) => void;
|
||||
}
|
||||
|
||||
export const ClientBookingCard: React.FC<ClientBookingCardProps> = ({ booking }) => {
|
||||
return React.createElement('div', { 'data-testid': 'client-booking-card' }, `Booking: ${booking.id}`);
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue