import { Suspense } from "react";
import Category from "./Category";
import Searchbar from "./Searchbar";

const Filter = () => {
  return (
    <div className="mt-8 flex flex-col gap-4 sm:mt-10 lg:flex-row lg:items-center lg:justify-between lg:gap-5">
      <Suspense
        fallback={
          <div className="h-12 w-full max-w-110 rounded-xl border border-brand-tint" />
        }
      >
        <Searchbar />
      </Suspense>
      <Suspense
        fallback={
          <div className="h-12 w-full max-w-110 rounded-xl border border-brand-tint lg:w-auto" />
        }
      >
        <Category />
      </Suspense>
    </div>
  );
};

export default Filter;
