mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 13:43:03 -05:00
25 lines
698 B
TypeScript
25 lines
698 B
TypeScript
import { Banner, Button, IconInfo32 } from '@create-figma-plugin/ui';
|
|
|
|
import { Stack } from '@ui/components/Stack';
|
|
import { useFigma } from '@ui/context';
|
|
|
|
export const PluginReload = () => {
|
|
const { reload, cancel } = useFigma();
|
|
|
|
return (
|
|
<Stack space="small">
|
|
<Banner icon={<IconInfo32 />}>
|
|
Changes detected. Please reload the plug-in to ensure all modifications are included in the
|
|
exported file.
|
|
</Banner>
|
|
<Stack space="xsmall" direction="row">
|
|
<Button onClick={reload} fullWidth>
|
|
Reload
|
|
</Button>
|
|
<Button secondary onClick={cancel} fullWidth>
|
|
Cancel
|
|
</Button>
|
|
</Stack>
|
|
</Stack>
|
|
);
|
|
};
|