How to use the @magento/peregrine/lib/talons/Checkout/Receipt/useReceipt.useReceipt function in @magento/peregrine

To help you get started, we’ve selected a few @magento/peregrine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Jordaneisenburger / fallback-studio / src / pwa-studio / packages / venia-ui / lib / components / Checkout / Receipt / receipt.js View on Github external
const Receipt = props => {
    const { history, onClose } = props;
    const talonProps = useReceipt({
        history,
        onClose
    });

    const {
        handleCreateAccount,
        handleViewOrderDetails,
        isSignedIn
    } = talonProps;

    const classes = mergeClasses(defaultClasses, props.classes);

    return (
        <div>
            <div>
                <h2>Thank you for your purchase!</h2></div></div>