import { IconTargetArrow } from '@material-hu/icons/tabler';
import Stack from '@material-hu/mui/Stack';

import HuAvatar from '@material-hu/components/design-system/Avatar';
import HuCardContainer from '@material-hu/components/design-system/CardContainer';
import HuTitle from '@material-hu/components/design-system/Title';

import { useLokaliseTranslation } from 'src/utils/i18n';

type GoalsEmptyStateProps = {
  title?: string;
  description?: string;
};

const GoalsEmptyState = ({ title, description }: GoalsEmptyStateProps) => {
  const { t } = useLokaliseTranslation('goals');

  return (
    <HuCardContainer fullWidth>
      <Stack
        sx={{
          justifyContent: 'center',
          alignItems: 'center',
          gap: 1,
          py: 2,
        }}
      >
        <HuAvatar
          size="large"
          color="primary"
          Icon={IconTargetArrow}
        />
        <HuTitle
          variant="M"
          centered
          title={title || t('my_team.empty_individual_goals.title')}
          description={
            description || t('my_team.empty_individual_goals.description')
          }
        />
      </Stack>
    </HuCardContainer>
  );
};

export default GoalsEmptyState;
