YMMV but I've never seen a tech company give less than 2 weeks pay when doing layoffs.
I'd rather take the money and not have to work while I find a new job than to have a warning that my job is going to end in 2 weeks while I'm expected to keep working.