Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/editors/media-viewer/button-bar.tsx
1691 views
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
/*
7
Button bar for media viewer
8
9
For now we just pass in a single function and don't bother with actions/redux, etc.,
10
since there is no state or need for it...
11
*/
12
13
14
15
import { Icon } from "../../components";
16
import { Button } from "../../antd-bootstrap";
17
18
interface Props {
19
refresh: () => void;
20
}
21
22
export const MediaViewerButtonBar: React.FC<Props> = ({ refresh }: Props) => {
23
return (
24
<div style={{ padding: "0 1px" }}>
25
<Button
26
title={"Reload this, showing the latest version on disk."}
27
onClick={refresh}
28
>
29
<Icon name={"repeat"} /> Reload
30
</Button>
31
</div>
32
);
33
};
34
35