mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
74 lines
1.7 KiB
TypeScript
74 lines
1.7 KiB
TypeScript
import {
|
|
ClickaleBlock,
|
|
Description,
|
|
MainSide,
|
|
Title,
|
|
} from '@roleypoly/design-system/molecules/server-utilities/ServerUtilities.styled';
|
|
import { GuildData } from '@roleypoly/types';
|
|
import { GoArchive, GoChevronRight, GoReport, GoShield, GoSync } from 'react-icons/go';
|
|
|
|
type Props = {
|
|
guildData: GuildData;
|
|
};
|
|
|
|
const Utility = (props: {
|
|
link: string;
|
|
title: React.ReactNode;
|
|
description: string;
|
|
}) => (
|
|
<ClickaleBlock href={props.link}>
|
|
<MainSide>
|
|
<Title>{props.title}</Title>
|
|
<Description>{props.description}</Description>
|
|
</MainSide>
|
|
<div>
|
|
<GoChevronRight />
|
|
</div>
|
|
</ClickaleBlock>
|
|
);
|
|
|
|
export const ServerUtilities = (props: Props) => (
|
|
<div>
|
|
{/* <LargeText>Server Utilities</LargeText> */}
|
|
<Utility
|
|
title={
|
|
<>
|
|
<GoShield />
|
|
Access Control
|
|
</>
|
|
}
|
|
description="Set up who can use Roleypoly in your server"
|
|
link={`/s/${props.guildData.id}/edit/access-control`}
|
|
/>
|
|
<Utility
|
|
title={
|
|
<>
|
|
<GoReport />
|
|
Audit Logging
|
|
</>
|
|
}
|
|
description="Setup audit logging via a Discord webhook"
|
|
link={`/s/${props.guildData.id}/edit/audit-logging`}
|
|
/>
|
|
<Utility
|
|
title={
|
|
<>
|
|
<GoSync />
|
|
Import from Roleypoly Legacy
|
|
</>
|
|
}
|
|
description="Used Roleypoly before and don't see your categories?"
|
|
link={`/s/${props.guildData.id}/edit/import-from-legacy`}
|
|
/>
|
|
<Utility
|
|
title={
|
|
<>
|
|
<GoArchive />
|
|
Manage your Data
|
|
</>
|
|
}
|
|
description="Export or delete all of your Roleypoly data."
|
|
link={`/s/${props.guildData.id}/edit/data`}
|
|
/>
|
|
</div>
|
|
);
|