"use client"

import { useIntl } from "react-intl"

import { CalendarAddIcon } from "@/components/Icons"
import Button from "@/components/TempDesignSystem/Button"

import styles from "../actionPanel.module.css"

export default function AddToCalendarButton({
  onPress,
}: {
  onPress: () => void
}) {
  const intl = useIntl()

  return (
    <Button
      variant="icon"
      intent="text"
      theme="base"
      className={styles.button}
      onPress={onPress}
    >
      {intl.formatMessage({ id: "Add to calendar" })}
      <CalendarAddIcon width={24} height={24} color="burgundy" />
    </Button>
  )
}
