const ProfileSelect = ({ value: profileId, ...props }: ProfileSelectProps) => {
  const queryClient = useQueryClient()
  const { data: profile } = useProfileQuery(profileId)

  const selectedOption = profile ? { value: profile.id, label: profile.name } : null