import React from 'react';
import { FormattedMessage } from 'react-intl';
import ScrollableList from 'soapbox/components/scrollable-list';
import { Modal, Spinner } from 'soapbox/components/ui';
import Account from 'soapbox/features/birthdays/account';
import { useAppSelector } from 'soapbox/hooks';
interface IBirthdaysModal {
onClose: (string: string) => void
}
const BirthdaysModal = ({ onClose }: IBirthdaysModal) => {
const accountIds = useAppSelector(state => state.user_lists.birthday_reminders.get(state.me as string)?.items);
const onClickClose = () => {
onClose('BIRTHDAYS');
};
let body;
if (!accountIds) {
body = ;
} else {
const emptyMessage = ;
body = (
{accountIds.map(id =>
,
)}
);
}
return (
}
onClose={onClickClose}
>
{body}
);
};
export default BirthdaysModal;