({
buttonText,
datasetId,
tabKey = DATASET_GENERAL_TAB_KEY,
...props
}: {
buttonText: string;
datasetId: string;
tabKey?: string;
} & ButtonProps)
| 4 | import { ProjectLink } from "../ProjectLink"; |
| 5 | |
| 6 | const ViewDatasetButton = ({ |
| 7 | buttonText, |
| 8 | datasetId, |
| 9 | tabKey = DATASET_GENERAL_TAB_KEY, |
| 10 | ...props |
| 11 | }: { |
| 12 | buttonText: string; |
| 13 | datasetId: string; |
| 14 | tabKey?: string; |
| 15 | } & ButtonProps) => { |
| 16 | return ( |
| 17 | <Button |
| 18 | as={ProjectLink} |
| 19 | href={{ |
| 20 | pathname: "/datasets/[id]/[tab]", |
| 21 | query: { |
| 22 | id: datasetId, |
| 23 | tab: tabKey, |
| 24 | }, |
| 25 | }} |
| 26 | whiteSpace={"normal"} |
| 27 | variant="link" |
| 28 | color="blue.600" |
| 29 | fontWeight="normal" |
| 30 | _hover={{ textDecoration: "underline" }} |
| 31 | {...props} |
| 32 | > |
| 33 | {buttonText} |
| 34 | </Button> |
| 35 | ); |
| 36 | }; |
| 37 | |
| 38 | export default ViewDatasetButton; |
nothing calls this directly
no outgoing calls
no test coverage detected