import { useState } from 'react' import styles from './styles.module.css' import { Column, Icon, Image, Row, Text } from '../../atoms' import { getGlobalStyle } from '../../../utils' import { CardOptionsPanel } from './helpers/CardOptionsPanel' export const CardOrderView: React.FC = (props) => { const { title, company, amount, date, comments, avatars, logo, onPrint } = props const [isOpen, setIsOpen] = useState(false) const toggleOptions = () => setIsOpen(!isOpen) return (
{/* HEADER */} {logo && ( {`${company} )} {(() => { const [first, ...rest] = (title || '')?.trim().split(/\s+/) return ( <> {first} {rest.length ? ` ${rest.join(' ')}` : ''} ) })()} {company} {amount}
{avatars?.slice(0, 3).map((src, index) => ( User avatar ))}
{date} {comments}
) }