Depends on the job and depends on the person. If they were more productive than like employees despite the napping, I'd let them just keep sleeping. If they were a productive employee but the nap seemed to be an outier, I'd give them a warning. If they were a less productive employee I'd probably just fire them.