* start adding getting started cards * still WIP but close finally * remove unused hook * initial ftux done * small thing * fix tos notice shenanigans * fix safe inset bottom padding * fix safe area inset bottom? * allow vercel.live in script-src * fix safari issues * refinement * implement feedback, wordsmith * add links & tracking * remove unused hook
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
import { Box, Flex } from "@chakra-ui/react";
|
|
import { AppLayout } from "components/app-layouts/app";
|
|
import { ReleasedContractTable } from "components/contract-components/contract-table-v2";
|
|
import { PREBUILT_SOLANA_CONTRACTS_MAP } from "constants/mappings";
|
|
import { PageId } from "page-id";
|
|
import { ThirdwebNextPage } from "pages/_app";
|
|
import { ReactElement } from "react";
|
|
import { Heading, Text } from "tw-components";
|
|
|
|
const Programs: ThirdwebNextPage = () => {
|
|
const prebuiltSolContracts = Object.values(PREBUILT_SOLANA_CONTRACTS_MAP);
|
|
|
|
return (
|
|
<Flex gap={6} direction="column">
|
|
<Heading>Programs</Heading>
|
|
<Text fontStyle="italic">Prebuilt solana progams for you to deploy.</Text>
|
|
<Box id="program-table">
|
|
<ReleasedContractTable
|
|
contractDetails={prebuiltSolContracts}
|
|
isFetching={false}
|
|
hideReleasedBy
|
|
/>
|
|
</Box>
|
|
</Flex>
|
|
);
|
|
};
|
|
|
|
Programs.getLayout = (page: ReactElement) => <AppLayout>{page}</AppLayout>;
|
|
|
|
Programs.pageId = PageId.Programs;
|
|
|
|
export default Programs;
|