Files
kvm/ui/src/layout/components_side/SharedFolders/index.tsx
luckfox-eng29 6f426e8999 Update App version to 0.1.2
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
2026-03-22 23:06:10 +08:00

29 lines
737 B
TypeScript

import React from "react";
import SideTabs from "@components/Sidebar/SideTabs";
import DeviceFilePage from "@/layout/components_side/SharedFolders/DeviceFilePage";
import SDFilePage from "@/layout/components_side/SharedFolders/SDFilePage";
import { useBootStorageType } from "@/hooks/useBootStorage";
const SharedFolders: React.FC = () => {
const { bootStorageType } = useBootStorageType();
const isBootFromSD = bootStorageType === "sd";
if (isBootFromSD) {
return <DeviceFilePage />;
}
return (
<SideTabs
tab1Label="KVM Storage"
tab2Label="MicroSD Card"
tab1Content={<DeviceFilePage />}
tab2Content={<SDFilePage />}
defaultActiveKey="1"
/>
);
};
export default SharedFolders;