* add contract ftux * fix lint * fix uploaded nfts * fix * fix bug * Big refactor * Rename component * Use absolute imports where possible * More changes * Show number of extensions on contract list * Add permissions check * Collapse if completed * Hide if all steps are completed --------- Co-authored-by: sid <[email protected]> Co-authored-by: Jonas Daniels <[email protected]>
35 lines
1022 B
TypeScript
35 lines
1022 B
TypeScript
import { Box, Container, Flex } from "@chakra-ui/react";
|
|
import type { useProgramMetadata } from "@thirdweb-dev/react/solana";
|
|
import { MetadataHeader } from "components/custom-contract/contract-header/metadata-header";
|
|
|
|
interface ProgramMetadataProps {
|
|
address: string;
|
|
metadataQuery: ReturnType<typeof useProgramMetadata>;
|
|
}
|
|
|
|
export const ProgramMetadata: React.FC<ProgramMetadataProps> = ({
|
|
address,
|
|
metadataQuery,
|
|
}) => {
|
|
return (
|
|
<Box borderColor="borderColor" borderBottomWidth={1} w="full" pb={8}>
|
|
<Container maxW="container.page">
|
|
<Flex
|
|
justify="space-between"
|
|
align={{ base: "inherit", md: "center" }}
|
|
direction={{ base: "column", md: "row" }}
|
|
gap={4}
|
|
>
|
|
<MetadataHeader
|
|
ecosystem="solana"
|
|
isError={metadataQuery.isError}
|
|
isLoaded={metadataQuery.isSuccess}
|
|
data={metadataQuery.data}
|
|
address={address}
|
|
/>
|
|
</Flex>
|
|
</Container>
|
|
</Box>
|
|
);
|
|
};
|