You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
452 B

  1. "use client";
  2. import React from "react";
  3. import TransferList, { TransferListProps } from "./TransferList";
  4. import MultiSelectList from "./MultiSelectList";
  5. import useIsMobile from "../utils/useIsMobile";
  6. const TransferListWrapper: React.FC<TransferListProps> = (props) => {
  7. const matches = useIsMobile();
  8. return !matches ? (
  9. <TransferList {...props} />
  10. ) : (
  11. <MultiSelectList {...props} />
  12. );
  13. };
  14. export default TransferListWrapper;