import { IMAGE_ROOT } from "@/shared/constants/common"; import { useState, useEffect } from "react"; import { LinkPaymentFilter } from "./link-payment-filter"; import { useNavigate } from '@/shared/lib/hooks/use-navigate'; import { PATHS } from "@/shared/constants/paths"; import { LinkPaymentList } from "./link-payment-list"; import { SortOptionsBox } from "./sort-options-box"; import { SortByKeys } from "../../model/types"; export const LinkPaymentDispatchListWrap = () => { const { navigate } = useNavigate(); const [filterOn, setFilterOn] = useState(false); const [sortBy, setSortBy] = useState(SortByKeys.New); const [listItems, setListItems] = useState({}); const onClickToOpenFilter = () => { setFilterOn(!filterOn); }; const onClickToNavigate = () => { navigate(PATHS.additionalService.linkPayment.request) } const onClickToSort = (sort: SortByKeys) => { setSortBy(sort); callList({ sortBy: sort }); }; const callList = (option?: {sortBy?: string, val?: string}) => { setListItems({ '20250608': [ { transactionId: 'txn1', customerName: '김*환(7000)', status: '결제완료', channel: 'SMS', paymentMethod: '신용카드', amount: 5254000 }, { transactionId: 'txn2', customerName: '김*환(7000)', status: '결제완료', channel: '이메일', paymentMethod: '신용카드', amount: 5254000 }, { transactionId: 'txn3', customerName: '김*환(7000)', status: '입금요청', channel: '이메일', paymentMethod: '신용카드', amount: 5254000 }, { transactionId: 'txn4', customerName: '김*환(7000)', status: '결제중단', channel: 'SMS', paymentMethod: '', amount: 5254000 }, { transactionId: 'txn5', customerName: '김*환(7000)', status: '결제실패', channel: 'SMS', paymentMethod: '', amount: 5254000 } ] }); }; useEffect(() => { callList(); }, []); return ( <>
전체 성공 실패
) }