MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / ViewDatasetButton

Function ViewDatasetButton

app/src/components/datasets/ViewDatasetButton.tsx:6–36  ·  view source on GitHub ↗
({
  buttonText,
  datasetId,
  tabKey = DATASET_GENERAL_TAB_KEY,
  ...props
}: {
  buttonText: string;
  datasetId: string;
  tabKey?: string;
} & ButtonProps)

Source from the content-addressed store, hash-verified

4import { ProjectLink } from "../ProjectLink";
5
6const 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
38export default ViewDatasetButton;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected