-
-
Notifications
You must be signed in to change notification settings - Fork 539
Expand file tree
/
Copy pathReloadButton.tsx
More file actions
29 lines (26 loc) · 890 Bytes
/
ReloadButton.tsx
File metadata and controls
29 lines (26 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
import * as React from 'react';
import {IconRestart} from '../../Icon/IconRestart';
export interface ReloadButtonProps {
onReload: () => void;
}
export function ReloadButton({onReload}: ReloadButtonProps) {
return (
<button
className="text-sm text-primary dark:text-primary-dark inline-flex items-center hover:text-link duration-100 ease-in transition mx-1"
onClick={onReload}
title="편집 내용을 유지하고 샌드박스를 새로고침합니다."
type="button">
<IconRestart className="inline mx-1 relative" />
<span className="hidden md:block">새로고침</span>
</button>
);
}