mirror of
https://github.com/khairul169/cebol.git
synced 2025-04-28 08:39:33 +07:00
23 lines
523 B
TypeScript
23 lines
523 B
TypeScript
import type { FC } from "hono/jsx";
|
|
import Layout from "../layouts/layout";
|
|
import LinksSection from "../sections/links";
|
|
import CreateLinkSection from "../sections/create-link";
|
|
import type { Link } from "../../types/link";
|
|
|
|
type Props = {
|
|
links: Link[];
|
|
};
|
|
|
|
const HomePage: FC<Props> = ({ links }) => {
|
|
return (
|
|
<Layout title="Cebol - URL Shortener">
|
|
<main class="container">
|
|
<CreateLinkSection />
|
|
<LinksSection links={links} />
|
|
</main>
|
|
</Layout>
|
|
);
|
|
};
|
|
|
|
export default HomePage;
|