import React, {ReactNode} from 'react';
import {useMediaQuery} from "react-responsive";

type CardViewProps = {
    children?: ReactNode
}

const CardView = ({children}: CardViewProps) => {


    const isMobile = useMediaQuery({query: '(max-width: 991px)'})
    const isSmallDesktop = useMediaQuery({query: '(max-width: 1400px)'})


    return (
        <>


            {/*<h2>VISITS MANAGEMENT EXAMPLE</h2>*/}
            {/*<ListRow*/}

            {/*>*/}
            {/*    /!***/}
            {/*     Actions of the dropdown go here*/}
            {/*     These are absolute align*/}
            {/*     And need to be first item of ListRowComponent*/}
            {/*     *!/*/}

            {/*    <CardActions>*/}
            {/*        <ListActions>*/}
            {/*            <ul>*/}
            {/*                <li>1</li>*/}
            {/*                <li>2</li>*/}
            {/*            </ul>*/}
            {/*        </ListActions>*/}
            {/*    </CardActions>*/}


            {/*    /!***/}
            {/*     ListCardSection Wrapper for grouping columns together in*/}
            {/*     CardView (1400 -)*/}
            {/*     These are ignored in larger screens*/}

            {/*     flex property of columns is overriden in cardview*/}
            {/*     *!/*/}
            {/*    <ListCardSection>*/}
            {/*        {*/}
            {/*            true &&*/}

            {/*            <NoteColumn*/}
            {/*                title={`Σημείωση`}*/}
            {/*                note={'τεστ'}*/}
            {/*                onSave={(note) => {}}*/}
            {/*            >*/}
            {/*            </NoteColumn>*/}
            {/*        }*/}

            {/*        /!***/}
            {/*         the flex property is used for sizing the columns in list view (1400+)*/}
            {/*         align == text align, also only used in list view*/}
            {/*         in some case margin needs to be set for mobile devices to align it properly,*/}
            {/*         but it has some issues ':)*/}
            {/*         *!/*/}
            {/*        <TextColumn*/}
            {/*            title={`Κωδικός Πρόσκλησης:`}*/}
            {/*            flex='0.2 0 110px'*/}
            {/*            size='13px'*/}
            {/*            align='left'*/}
            {/*            margin={isMobile ? 'right' : 'auto'}*/}
            {/*        >*/}
            {/*            <b>AR00027</b>*/}
            {/*            <span>-1407-13-26</span>*/}
            {/*        </TextColumn>*/}

            {/*        <TextColumn*/}
            {/*            title={`Ώρα Επίσκεψης`}*/}
            {/*            flex={'0 0 auto'}*/}
            {/*            size={'11px'}*/}
            {/*            align='left'*/}
            {/*        >*/}
            {/*            08:00 - 20:00*/}

            {/*        </TextColumn>*/}
            {/*    </ListCardSection>*/}

            {/*    <ListCardSection>*/}
            {/*        <IconColumn*/}
            {/*            flex={'0 0 25px'}*/}
            {/*            icon={mass}>*/}
            {/*        </IconColumn>*/}

            {/*        {*/}
            {/*            false &&*/}
            {/*            <TextColumn*/}
            {/*                title={`Email Επισκέπτη:`}*/}
            {/*                align='left'*/}
            {/*                flex='1 0 130px'*/}
            {/*                size={'12px'}*/}
            {/*                margin={isMobile ? 'right' : 'auto'}*/}
            {/*            >*/}
            {/*                <b>*/}
            {/*                    /!*@ts-ignore*!/*/}
            {/*                    phoebus@gmail.com*/}
            {/*                </b>*/}
            {/*            </TextColumn>*/}
            {/*        }*/}


            {/*        <TextColumn*/}
            {/*            title={`Email Επισκέπτη:`}*/}
            {/*            align='left'*/}
            {/*            flex='1 0 130px'*/}
            {/*            size={'12px'}*/}
            {/*            margin={isMobile ? 'right' : 'auto'}*/}
            {/*        >*/}
            {/*            <b>*/}
            {/*                ΔΑΦΝΗΣ*/}
            {/*                <>&nbsp;</>*/}
            {/*                ΦΟΙΒΟΣ*/}
            {/*            </b>*/}
            {/*        </TextColumn>*/}

            {/*        <StatusColumn*/}
            {/*            title={'ΔΔΔΔΔΔΔ'}*/}
            {/*            flex={'0 0 105px'}*/}

            {/*        >*/}
            {/*            STATUS*/}
            {/*        </StatusColumn>*/}
            {/*    </ListCardSection>*/}

            {/*    <ListCardSection>*/}
            {/*        <TextColumn*/}
            {/*            title={`Ινστιτούτο:`}*/}
            {/*            flex={'0.5 0 30px'}*/}
            {/*            >*/}
            {/*            <b>*/}
            {/*                IIT*/}
            {/*            </b>*/}
            {/*        </TextColumn>*/}

            {/*        <PopupColumn>*/}
            {/*        <span title={'Μύνημα προς πύλη'}>*/}
            {/*            <img src={messageIcon} alt=""/>*/}
            {/*        </span>*/}
            {/*            <span>*/}
            {/*            <form>*/}
            {/*                 /!*@ts-ignore*!/*/}
            {/*                <textarea name="" id=""*/}
            {/*                          placeholder={'Δεν υπάρχει μύνημα προς την πύλη'} readOnly>*/}
            {/*               MYNHMA MYNHMA*/}
            {/*                </textarea>*/}
            {/*            </form>*/}
            {/*        </span>*/}
            {/*        </PopupColumn>*/}

            {/*        {*/}
            {/*            isMobile || <div className={'h-100'}></div>*/}
            {/*        }*/}

            {/*        <TextColumn*/}
            {/*            title={`Αποστολέας:`}*/}
            {/*            align='left'*/}
            {/*            size={'13px'}*/}
            {/*            flex={'1 0 115px'}*/}
            {/*        >*/}
            {/*        <span>*/}
            {/*           ΝΙΚΟΣ ΝΙΚΟΛΟΠΟΥΛΟΣ*/}
            {/*        </span>*/}
            {/*        </TextColumn>*/}


            {/*        {*/}

            {/*            true &&*/}

            {/*            <TextColumn*/}
            {/*                title={`Τηλέφωνο:`}*/}
            {/*                align='left'*/}
            {/*                flex={'0 0 30px'}*/}
            {/*                size={'13px'}*/}
            {/*            >*/}
            {/*            <span>*/}
            {/*             3127*/}
            {/*            </span>*/}
            {/*            </TextColumn>}*/}

            {/*    </ListCardSection>*/}

            {/*    <ListCardSection align={'center'}>*/}

            {/*        /!***/}
            {/*         the ButtonColumn styling is completely overriden in mobile devices (991 -)*/}
            {/*         ONLY ONE button column must be rendered inside ListCardSection in mobile*/}
            {/*         for it to work properly*/}
            {/*         *!/*/}

            {/*        {*/}
            {/*            <>*/}
            {/*                {*/}
            {/*                    isSmallDesktop ||*/}

            {/*                    <ButtonColumn*/}
            {/*                        disabled={true}*/}
            {/*                        action={() => {}}*/}
            {/*                    >*/}
            {/*                        ΕΙΣΟΔΟΣ*/}
            {/*                    </ButtonColumn>*/}
            {/*                }*/}

            {/*                <ButtonColumn*/}
            {/*                    disabled={false}*/}
            {/*                    action={() => {*/}
            {/*                        }}*/}
            {/*                >*/}
            {/*                    ΕΞΟΔΟΣ*/}
            {/*                </ButtonColumn>*/}

            {/*            </>*/}
            {/*        }*/}
            {/*    </ListCardSection>*/}

            {/*</ListRow>*/}

            {/*<h2>CATALOG EXAMPLE</h2>*/}
            {/*<ListRow*/}
            {/*    status={'pending'}*/}
            {/*>*/}
            {/*    <ListCardSection>*/}
            {/*        <TextColumn*/}
            {/*            textWrap*/}
            {/*            flex='1 1 300px'*/}
            {/*            size={'12px'}*/}
            {/*            align={'left'}*/}
            {/*            title={`Κάντε click για αντιγραφή`}*/}
            {/*        >*/}

            {/*        <span*/}
            {/*            style={{position: 'relative', cursor: 'pointer'}}*/}
            {/*        >*/}
            {/*            ΦΟΙΒΟΣ ΔΑΦΝΗΣ*/}
            {/*        </span>*/}
            {/*        </TextColumn>*/}
            {/*        <TextColumn*/}
            {/*            flex='1 1 280px'*/}
            {/*            size={'11px'}*/}
            {/*            title={`Κάντε click για αποστολή Email`}*/}
            {/*            align={'left'}*/}
            {/*        >*/}
            {/*            phoebus.di@gmail.com*/}
            {/*        </TextColumn>*/}
            {/*    </ListCardSection>*/}

            {/*    <ListCardSection>*/}
            {/*        <TextColumn*/}
            {/*            flex="1 1 200px"*/}
            {/*            size={'16px'}*/}
            {/*            align="left"*/}
            {/*            title={`Κάντε click για αντιγραφή`}*/}
            {/*        >*/}

            {/*            <>*/}
            {/*                τηλ: 3126, 2313*/}
            {/*            </>*/}


            {/*        </TextColumn>*/}
            {/*        <TextColumn*/}
            {/*            title={'Κτίριο:'}*/}
            {/*            flex={'1 1 100px'}*/}
            {/*            align={'left'}>*/}
            {/*            {*/}
            {/*                <span>Κτίριο 28</span>*/}
            {/*            }*/}
            {/*        </TextColumn>*/}
            {/*    </ListCardSection>*/}
            {/*    <ListCardSection>*/}
            {/*        <TextColumn*/}
            {/*            size='12px'*/}
            {/*            flex={'1 1 200px'}*/}
            {/*            align={'left'}*/}
            {/*        >*/}
            {/*            www.foivos.com*/}
            {/*        </TextColumn>*/}

            {/*        <TextColumn*/}
            {/*            size='12px'*/}
            {/*            title={`Κάντε click για κλήση Skype`}*/}
            {/*            flex={'1 1 150px'}*/}
            {/*            align={'left'}>*/}
            {/*            foivos.skype*/}
            {/*        </TextColumn>*/}
            {/*    </ListCardSection>*/}
            {/*</ListRow>*/}
        </>
    )
        ;
}

export default CardView;