diff --git a/src/app/add-listing/FormItem.tsx b/src/app/add-listing/FormItem.tsx new file mode 100644 index 0000000..b4ae78c --- /dev/null +++ b/src/app/add-listing/FormItem.tsx @@ -0,0 +1,31 @@ +import Label from "@/components/Label"; +import React from "react"; +import { FC } from "react"; + +export interface FormItemProps { + className?: string; + label?: string; + desc?: string; + children?: React.ReactNode; +} + +const FormItem: FC = ({ + children, + className = "", + label, + desc, +}) => { + return ( +
+ {label && } +
{children}
+ {desc && ( + + {desc} + + )} +
+ ); +}; + +export default FormItem; diff --git a/src/app/api/hello/route.ts b/src/app/api/hello/route.ts new file mode 100644 index 0000000..d1cc6ee --- /dev/null +++ b/src/app/api/hello/route.ts @@ -0,0 +1,3 @@ +export async function GET(request: Request) { + return new Response('Hello, Next.js!') +}