-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Icon changes, add DataControls for info, copy URL, and set data URL
- Loading branch information
Showing
4 changed files
with
109 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { TrackManager } from "@/lib/TrackManager"; | ||
import { ButtonIcon } from "@czi-sds/components"; | ||
import { Box } from "@mui/material"; | ||
|
||
interface DataControlsProps { | ||
dataUrl: string; | ||
initialDataUrl: string; | ||
setDataUrl: (dataUrl: string) => void; | ||
copyShareableUrlToClipboard: () => void; | ||
trackManager: TrackManager | null; // TODO: remove this? | ||
} | ||
|
||
export default function DataControls(props: DataControlsProps) { | ||
return ( | ||
<Box sx={{ display: "flex", flexDirection: "row", justifyContent: "space-between" }}> | ||
{/* TODO: make this do something */} | ||
<ButtonIcon sdsIcon="infoCircle" sdsSize="large" sdsType="secondary" /> | ||
|
||
<ButtonIcon | ||
sdsIcon="share" | ||
sdsSize="large" | ||
sdsType="secondary" | ||
disabled={!props.trackManager} | ||
onClick={props.copyShareableUrlToClipboard} | ||
/> | ||
|
||
{/* TODO: make this do something */} | ||
<ButtonIcon sdsIcon="globeBasic" sdsSize="large" sdsType="secondary" /> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters