diff --git a/src/apps/dashboard/components/widgets/ServerPathWidget.tsx b/src/apps/dashboard/components/widgets/ServerPathWidget.tsx index 98fe4be57..b7c960e48 100644 --- a/src/apps/dashboard/components/widgets/ServerPathWidget.tsx +++ b/src/apps/dashboard/components/widgets/ServerPathWidget.tsx @@ -1,35 +1,21 @@ -import ChevronRight from '@mui/icons-material/ChevronRight'; -import Button from '@mui/material/Button'; import List from '@mui/material/List'; -import Typography from '@mui/material/Typography'; import React from 'react'; import { useSystemStorage } from 'apps/dashboard/features/storage/api/useSystemStorage'; import StorageListItem from 'apps/dashboard/features/storage/components/StorageListItem'; import globalize from 'lib/globalize'; +import Widget from './Widget'; const ServerPathWidget = () => { const { data: systemStorage } = useSystemStorage(); return ( - <> - - + { folder={systemStorage?.WebFolder} /> - + ); }; diff --git a/src/apps/dashboard/components/widgets/Widget.tsx b/src/apps/dashboard/components/widgets/Widget.tsx new file mode 100644 index 000000000..a2a4bc8b1 --- /dev/null +++ b/src/apps/dashboard/components/widgets/Widget.tsx @@ -0,0 +1,36 @@ +import Box from '@mui/material/Box'; +import Button from '@mui/material/Button'; +import Typography from '@mui/material/Typography'; +import ChevronRight from '@mui/icons-material/ChevronRight'; +import React from 'react'; + +type IProps = { + title: string; + href?: string; + children: React.ReactNode; +}; + +const Widget = ({ title, href, children }: IProps) => { + return ( + + + + {children} + + ); +}; + +export default Widget;