import {Button} from '@chakra-ui/react'
import {FaSave} from '@react-icons/all-files/fa/FaSave'
import {downloadStoreAsFile} from '../../services/publish/downloadStoreAsFile'

export const SaveButton = () => {
  return (
    <>
      <Button
        onClick={downloadStoreAsFile}
        variant={'outline'}
        size="sm"
        fontWeight="normal"
        leftIcon={<FaSave color="teal" />}>
        Local save
      </Button>
    </>
  )
}
