import * as React from 'react'; import cx from 'classnames'; interface SharedProps { className?: string; children?: React.ReactNode; } const Root: React.FC = ({ className, children }) => (
{children}
); const Content: React.FC = ({ className, children }) => (
{children}
); interface TextProps extends SharedProps { color: 'dark' | 'light'; } const Text: React.FC = ({ className, children, color = 'dark' }) => ( {children} ); interface HighlightProps extends SharedProps { secondary?: boolean; } const Highlight: React.FC = ({ className, children, secondary, }) => ( {children} ); interface SelectProps extends SharedProps { onSelect: (iataCode: string) => void; defaultValue: string; options: { value: string; label: string }[]; } const Select: React.FC = ({ className, defaultValue, onSelect, options, }) => ( ); interface ButtonProps extends SharedProps { secondary?: boolean; onClick?: () => void; disabled?: boolean; } const Button: React.FC = ({ className, children, secondary, ...props }) => ( ); export const Card = { Root, Button, Highlight, Select, Text, Content, };