2023-07-07 03:25:17 +09:00
|
|
|
export default function Panel({ open = false }) {
|
2023-05-19 16:02:41 -04:00
|
|
|
const openPanel = (
|
|
|
|
|
<svg
|
|
|
|
|
stroke="currentColor"
|
2023-07-07 03:25:17 +09:00
|
|
|
fill="none"
|
|
|
|
|
strokeWidth="2"
|
|
|
|
|
viewBox="0 0 24 24"
|
2023-05-19 16:02:41 -04:00
|
|
|
strokeLinecap="round"
|
|
|
|
|
strokeLinejoin="round"
|
2023-07-07 03:25:17 +09:00
|
|
|
className="h-4 w-4"
|
|
|
|
|
height="1em"
|
|
|
|
|
width="1em"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
2023-05-19 16:02:41 -04:00
|
|
|
>
|
2023-07-07 03:25:17 +09:00
|
|
|
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
|
|
|
<line x1="9" y1="3" x2="9" y2="21"></line>
|
2023-05-19 16:02:41 -04:00
|
|
|
</svg>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const closePanel = (
|
|
|
|
|
<svg
|
|
|
|
|
stroke="currentColor"
|
2023-07-07 03:25:17 +09:00
|
|
|
fill="none"
|
|
|
|
|
strokeWidth="2"
|
|
|
|
|
viewBox="0 0 24 24"
|
2023-05-19 16:02:41 -04:00
|
|
|
strokeLinecap="round"
|
|
|
|
|
strokeLinejoin="round"
|
2023-07-07 03:25:17 +09:00
|
|
|
className="h-4 w-4"
|
|
|
|
|
height="1em"
|
|
|
|
|
width="1em"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
2023-05-19 16:02:41 -04:00
|
|
|
>
|
2023-07-07 03:25:17 +09:00
|
|
|
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
|
|
|
<line x1="9" y1="3" x2="9" y2="21"></line>
|
2023-05-19 16:02:41 -04:00
|
|
|
</svg>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (open) {
|
|
|
|
|
return openPanel;
|
|
|
|
|
} else {
|
|
|
|
|
return closePanel;
|
|
|
|
|
}
|
|
|
|
|
}
|