2024-06-04 08:33:55 -05:00
|
|
|
import { Banner, Button, IconInfo32 } from '@create-figma-plugin/ui';
|
|
|
|
|
|
|
|
import { Stack } from '@ui/components/Stack';
|
2024-06-04 11:02:59 -05:00
|
|
|
import { useFigmaContext } from '@ui/context';
|
2024-06-04 08:33:55 -05:00
|
|
|
|
|
|
|
export const PluginReload = () => {
|
2024-06-04 11:02:59 -05:00
|
|
|
const { reload, cancel } = useFigmaContext();
|
2024-06-04 08:33:55 -05:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Stack space="small">
|
|
|
|
<Banner icon={<IconInfo32 />}>
|
2024-06-18 06:20:09 -05:00
|
|
|
Changes detected in fonts.
|
|
|
|
<br />
|
|
|
|
Please reload the plug-in to ensure all modifications are included in the exported file.
|
2024-06-04 08:33:55 -05:00
|
|
|
</Banner>
|
|
|
|
<Stack space="xsmall" direction="row">
|
|
|
|
<Button onClick={reload} fullWidth>
|
|
|
|
Reload
|
|
|
|
</Button>
|
|
|
|
<Button secondary onClick={cancel} fullWidth>
|
|
|
|
Cancel
|
|
|
|
</Button>
|
|
|
|
</Stack>
|
|
|
|
</Stack>
|
|
|
|
);
|
|
|
|
};
|