mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import { BreakpointText } from '@roleypoly/design-system/atoms/breakpoints';
|
|
import { Button } from '@roleypoly/design-system/atoms/button';
|
|
import { FaderOpacity } from '@roleypoly/design-system/atoms/fader';
|
|
import { GuildSlug } from '@roleypoly/types';
|
|
import { GoCheck, GoPencil } from 'react-icons/go';
|
|
import {
|
|
IconHolder,
|
|
MastheadAlignment,
|
|
MastheadLeft,
|
|
MastheadRight,
|
|
SecondaryBase,
|
|
TextHolder,
|
|
} from './Masthead.styled';
|
|
|
|
type SecondaryEditingProps = {
|
|
guild: GuildSlug;
|
|
showReset: boolean;
|
|
};
|
|
|
|
export const SecondaryEditing = (props: SecondaryEditingProps) => (
|
|
<SecondaryBase>
|
|
<MastheadAlignment>
|
|
<MastheadLeft>
|
|
<TextHolder>
|
|
<IconHolder>
|
|
<GoPencil />
|
|
</IconHolder>
|
|
<BreakpointText small="Editing..." large={`Editing ${props.guild.name}...`} />
|
|
</TextHolder>
|
|
</MastheadLeft>
|
|
<MastheadRight>
|
|
<FaderOpacity isVisible={props.showReset}>
|
|
<Button size="small" color="silent">
|
|
Reset
|
|
</Button>
|
|
</FaderOpacity>
|
|
|
|
<Button size="small">
|
|
Done <GoCheck />
|
|
</Button>
|
|
</MastheadRight>
|
|
</MastheadAlignment>
|
|
</SecondaryBase>
|
|
);
|