-
-
Notifications
You must be signed in to change notification settings - Fork 539
Expand file tree
/
Copy pathOpenInCodeSandboxButton.tsx
More file actions
28 lines (25 loc) · 910 Bytes
/
OpenInCodeSandboxButton.tsx
File metadata and controls
28 lines (25 loc) · 910 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
/**
* 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 {UnstyledOpenInCodeSandboxButton} from '@codesandbox/sandpack-react/unstyled';
import {IconNewPage} from '../../Icon/IconNewPage';
export const OpenInCodeSandboxButton = () => {
return (
<UnstyledOpenInCodeSandboxButton
className="text-sm text-primary dark:text-primary-dark inline-flex items-center hover:text-link duration-100 ease-in transition mx-1 ms-2 md:ms-1"
title="CodeSandbox에서 편집합니다.">
<IconNewPage
className="inline mx-1 relative top-[1px]"
width="1em"
height="1em"
/>
<span className="hidden md:block">포크</span>
</UnstyledOpenInCodeSandboxButton>
);
};